Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestAirDrag.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1-master/package.mo", uses=false) Using package PlanarMechanics with version 1.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PlanarMechanics.VehicleComponents.Examples.TestAirDrag,fileNamePrefix="PlanarMechanics_PlanarMechanics_VehicleComponents_Examples_TestAirDrag",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.VehicleComponents.Examples.TestAirDrag,fileNamePrefix="PlanarMechanics_PlanarMechanics_VehicleComponents_Examples_TestAirDrag",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000817/0.0008169, allocations: 86.25 kB / 15.06 MB, free: 1.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008824/0.0008827, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.32/1.32, allocations: 223.3 MB / 240 MB, free: 5.43 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1-master/package.mo): time 0.1827/0.1827, allocations: 9.113 MB / 300.2 MB, free: 2.746 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003026/0.0003027, allocations: 8 kB / 363.2 MB, free: 12.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09919/0.09952, allocations: 52.43 MB / 415.6 MB, free: 8.438 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.VehicleComponents.Examples.TestAirDrag): time 0.2002/0.2998, allocations: 17.48 MB / 433.1 MB, free: 34.05 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00788/0.3077, allocations: 4.516 MB / 437.6 MB, free: 32.45 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002271/0.31, allocations: 68.94 kB / 437.7 MB, free: 32.44 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001556/0.3116, allocations: 0.8081 MB / 438.5 MB, free: 32.16 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005689/0.3173, allocations: 2.868 MB / 441.4 MB, free: 30.89 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007177/0.318, allocations: 211.8 kB / 441.6 MB, free: 30.79 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002158/0.3202, allocations: 2.629 MB / 444.2 MB, free: 29.78 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001009/0.3212, allocations: 0.9433 MB / 445.2 MB, free: 29.44 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007431/0.322, allocations: 0.754 MB / 445.9 MB, free: 29.18 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001136/0.3231, allocations: 1.264 MB / 447.2 MB, free: 28.77 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001989/0.3233, allocations: 128.9 kB / 447.3 MB, free: 28.77 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008966/0.3242, allocations: 0.5874 MB / 447.9 MB, free: 28.64 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006505/0.3249, allocations: 1.057 MB / 448.9 MB, free: 28.29 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003539/0.3253, allocations: 0.6149 MB / 449.6 MB, free: 27.84 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002138/0.3274, allocations: 3.664 MB / 453.2 MB, free: 27.01 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.801e-06/0.3274, allocations: 4 kB / 453.2 MB, free: 27 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.3274, allocations: 0 / 453.2 MB, free: 27 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.21e-05/0.3275, allocations: 0 / 453.2 MB, free: 27 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1104 * Number of variables: 1104 Notification: Performance of Generate backend data structure: time 0.004718/0.3322, allocations: 3.048 MB / 456.3 MB, free: 25.43 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.428e-05/0.3323, allocations: 12.19 kB / 456.3 MB, free: 25.43 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006821/0.333, allocations: 0.5117 MB / 456.8 MB, free: 25.16 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005699/0.3387, allocations: 1.804 MB / 458.6 MB, free: 24.88 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001935/0.3406, allocations: 1.296 MB / 459.9 MB, free: 24.07 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.379e-05/0.3407, allocations: 156.4 kB / 460.1 MB, free: 23.99 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003397/0.3411, allocations: 205.2 kB / 460.3 MB, free: 23.92 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01085/0.3519, allocations: 7.542 MB / 467.8 MB, free: 20.52 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.609e-05/0.352, allocations: 20.36 kB / 467.8 MB, free: 20.52 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002717/0.3523, allocations: 97.36 kB / 467.9 MB, free: 20.45 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002876/0.3552, allocations: 1.711 MB / 469.6 MB, free: 20.09 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.014/0.3692, allocations: 6.806 MB / 476.4 MB, free: 17.72 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02611/0.3953, allocations: 22.97 MB / 499.4 MB, free: 15.34 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003298/0.3987, allocations: 2.153 MB / 0.4898 GB, free: 13.05 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001043/0.3997, allocations: 0.7315 MB / 0.4905 GB, free: 12.32 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004913/0.4047, allocations: 3.254 MB / 0.4937 GB, free: 8.891 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.936e-05/0.4047, allocations: 47.52 kB / 0.4937 GB, free: 8.836 MB / 366.1 MB Notification: Performance of pre-optimization done (n=113): time 2.956e-06/0.4047, allocations: 0 / 0.4937 GB, free: 8.836 MB / 366.1 MB Notification: Performance of matching and sorting (n=127): time 0.007089/0.4118, allocations: 3.924 MB / 0.4976 GB, free: 4.898 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.622e-05/0.4119, allocations: 68.39 kB / 0.4976 GB, free: 4.82 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003132/0.415, allocations: 2.426 MB / 0.5 GB, free: 2.355 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.423e-05/0.4151, allocations: 41.7 kB / 0.5 GB, free: 2.309 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00125/0.4164, allocations: 2.003 MB / 0.502 GB, free: 280 kB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004213/0.4168, allocations: 485.6 kB / 0.5025 GB, free: 15.79 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001409/0.4169, allocations: 67.98 kB / 0.5025 GB, free: 15.73 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002719/0.4172, allocations: 461.8 kB / 0.503 GB, free: 15.27 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001854/0.4191, allocations: 1.182 MB / 0.5041 GB, free: 14.09 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002916/0.422, allocations: 3.234 MB / 0.5073 GB, free: 9.844 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002718/0.4247, allocations: 1.94 MB / 0.5092 GB, free: 7.902 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.806e-05/0.4248, allocations: 24 kB / 0.5092 GB, free: 7.879 MB / 382.1 MB Notification: Performance of matching and sorting (n=468) (initialization): time 0.006735/0.4315, allocations: 4.479 MB / 0.5136 GB, free: 3.387 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.378e-05/0.4316, allocations: 36 kB / 0.5136 GB, free: 3.352 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.001e-05/0.4317, allocations: 79.89 kB / 0.5137 GB, free: 3.273 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005377/0.4322, allocations: 241.5 kB / 0.5139 GB, free: 3.035 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00216/0.4344, allocations: 0.8035 MB / 0.5147 GB, free: 2.23 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002855/0.4373, allocations: 2.649 MB / 0.5173 GB, free: 15.45 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002052/0.4393, allocations: 187.8 kB / 0.5175 GB, free: 15.26 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002658/0.4396, allocations: 216 kB / 0.5177 GB, free: 15.05 MB / 398.1 MB Warning: Assuming fixed start value for the following 1 variables: revolute.w:VARIABLE(start = -5.0 unit = "rad/s" fixed = true stateSelect=StateSelect.always ) "Angular velocity" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 328 * Number of states: 0 () * Number of discrete variables: 9 (revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (431): * Single equations (assignments): 426 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002215/0.4418, allocations: 1.509 MB / 0.5191 GB, free: 13.53 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002616/0.4421, allocations: 201.4 kB / 0.5193 GB, free: 13.33 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00274/0.4448, allocations: 1.759 MB / 0.5211 GB, free: 11.56 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.807e-05/0.4449, allocations: 23.98 kB / 0.5211 GB, free: 11.54 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/0.4449, allocations: 0 / 0.5211 GB, free: 11.54 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.202e-05/0.445, allocations: 6 kB / 0.5211 GB, free: 11.53 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007642/0.4526, allocations: 5.105 MB / 0.5261 GB, free: 6.309 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.945e-06/0.4526, allocations: 4 kB / 0.5261 GB, free: 6.305 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006945/0.4533, allocations: 163.8 kB / 0.5262 GB, free: 6.145 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000326/0.4537, allocations: 120.7 kB / 0.5263 GB, free: 6.023 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.649e-05/0.4538, allocations: 28.05 kB / 0.5264 GB, free: 5.996 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002126/0.4559, allocations: 2.187 MB / 0.5285 GB, free: 3.672 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/0.4559, allocations: 0 / 0.5285 GB, free: 3.672 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003569/0.4595, allocations: 2.72 MB / 0.5312 GB, free: 0.8984 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006923/0.4602, allocations: 426.6 kB / 0.5316 GB, free: 472 kB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001976/0.4604, allocations: 23.95 kB / 0.5316 GB, free: 448 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006475/0.461, allocations: 55.92 kB / 0.5316 GB, free: 392 kB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001117/0.4612, allocations: 76.77 kB / 0.5317 GB, free: 312 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.53e-05/0.4613, allocations: 36 kB / 0.5318 GB, free: 276 kB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002121/0.4634, allocations: 1.562 MB / 0.5333 GB, free: 14.69 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4634, allocations: 4 kB / 0.5333 GB, free: 14.68 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002459/0.4659, allocations: 0.6094 MB / 0.5339 GB, free: 14.07 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 2 (revolute.phi,revolute.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (94): * Single equations (assignments): 89 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004073/0.4699, allocations: 3.357 MB / 0.5372 GB, free: 10.66 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00482/0.4748, allocations: 2.859 MB / 0.5399 GB, free: 7.816 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.702e-06/0.4748, allocations: 0 / 0.5399 GB, free: 7.816 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001175/0.476, allocations: 0.8837 MB / 0.5408 GB, free: 6.918 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001757/0.4777, allocations: 351.7 kB / 0.5411 GB, free: 6.578 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0327/0.5105, allocations: 19.14 MB / 0.5598 GB, free: 1.527 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003279/0.5138, allocations: 2.464 MB / 0.5622 GB, free: 15.04 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002849/0.5167, allocations: 1.093 MB / 0.5633 GB, free: 13.94 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001974/0.5187, allocations: 1.21 MB / 0.5645 GB, free: 12.73 MB / 446.1 MB Notification: Performance of SimCode: time 1.202e-06/0.5187, allocations: 0 / 0.5645 GB, free: 12.73 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2593/0.778, allocations: 48.36 MB / 0.6117 GB, free: 114.7 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001361/0.7782, allocations: 216.1 kB / 0.6119 GB, free: 114.5 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.476/3.254, allocations: 1.312 kB / 0.6119 GB, free: 114.5 MB / 446.1 MB (rm -f PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestAirDrag.pipe ; mkfifo PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestAirDrag.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestAirDrag.pipe >> ../files/PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestAirDrag.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_VehicleComponents_Examples_TestAirDrag_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_VehicleComponents_Examples_TestAirDrag.fmu > PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestAirDrag.pipe 2>&1) Environment - environmentSimulation: