Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.KinematicLoop.conf.json 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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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) Running command: "" <> buildModelFMU(PlanarMechanics.Examples.KinematicLoop,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_KinematicLoop",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.KinematicLoop,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_KinematicLoop",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001542/0.001542, allocations: 180.9 kB / 15.45 MB, free: 0.6523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.352/1.352, allocations: 223.3 MB / 239.5 MB, free: 5.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008098/0.0008098, allocations: 91.12 kB / 290.6 MB, free: 2.137 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1-master/package.mo): time 0.03827/0.03827, allocations: 9.114 MB / 350.9 MB, free: 4.273 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003363/0.0003363, allocations: 9.656 kB / 414.1 MB, free: 42.43 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0915/0.09186, allocations: 52.43 MB / 466.6 MB, free: 12.86 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.KinematicLoop): time 0.03807/0.13, allocations: 43.03 MB / 0.4976 GB, free: 1.664 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01931/0.1493, allocations: 9.224 MB / 0.5067 GB, free: 8.41 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007837/0.1572, allocations: 167.7 kB / 0.5068 GB, free: 8.246 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001395/0.1586, allocations: 366.1 kB / 0.5072 GB, free: 7.887 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003972/0.1626, allocations: 1.475 MB / 0.5086 GB, free: 6.406 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006891/0.1633, allocations: 191.8 kB / 0.5088 GB, free: 6.219 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004585/0.1679, allocations: 4.066 MB / 0.5128 GB, free: 2.145 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001606/0.1696, allocations: 1.05 MB / 0.5138 GB, free: 1.07 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001599/0.1712, allocations: 0.9254 MB / 0.5147 GB, free: 144 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002166/0.1734, allocations: 1.529 MB / 0.5162 GB, free: 14.6 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005266/0.1739, allocations: 156 kB / 0.5163 GB, free: 14.45 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001599/0.1755, allocations: 0.8071 MB / 0.5171 GB, free: 13.64 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001316/0.1768, allocations: 1.305 MB / 0.5184 GB, free: 12.34 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001738/0.1786, allocations: 1.768 MB / 0.5201 GB, free: 10.55 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005032/0.1836, allocations: 5.146 MB / 0.5251 GB, free: 5.387 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.052e-06/0.1837, allocations: 0 / 0.5251 GB, free: 5.387 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.656e-06/0.1837, allocations: 7.938 kB / 0.5252 GB, free: 5.379 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001133/0.1838, allocations: 0 / 0.5252 GB, free: 5.379 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1368 * Number of variables: 1368 Notification: Performance of Generate backend data structure: time 0.01199/0.1958, allocations: 4.976 MB / 0.53 GB, free: 344 kB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.866e-05/0.1959, allocations: 8.594 kB / 0.53 GB, free: 336 kB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.1604/0.3563, allocations: 0.6255 MB / 0.5306 GB, free: 69.92 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006622/0.3629, allocations: 1.883 MB / 0.5325 GB, free: 69.71 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003031/0.366, allocations: 1.567 MB / 0.534 GB, free: 69.14 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001591/0.3661, allocations: 186.6 kB / 0.5342 GB, free: 69.13 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004939/0.3666, allocations: 245.4 kB / 0.5344 GB, free: 69.12 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01543/0.3821, allocations: 9.306 MB / 0.5435 GB, free: 67.75 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.225e-05/0.3822, allocations: 38.44 kB / 0.5435 GB, free: 67.73 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003387/0.3826, allocations: 115.8 kB / 0.5436 GB, free: 67.73 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003698/0.3863, allocations: 2.074 MB / 0.5457 GB, free: 67.65 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01528/0.4016, allocations: 8.244 MB / 0.5537 GB, free: 62.7 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03459/0.4362, allocations: 30.04 MB / 0.5831 GB, free: 32.28 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006725/0.443, allocations: 3.034 MB / 0.586 GB, free: 29.12 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001488/0.4445, allocations: 1.116 MB / 0.5871 GB, free: 28 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006645/0.4512, allocations: 6.276 MB / 0.5932 GB, free: 21.1 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.74e-05/0.4512, allocations: 55.8 kB / 0.5933 GB, free: 21.04 MB / 366.1 MB Notification: Performance of pre-optimization done (n=179): time 3.276e-06/0.4512, allocations: 3.938 kB / 0.5933 GB, free: 21.04 MB / 366.1 MB Notification: Performance of matching and sorting (n=233): time 0.02045/0.4717, allocations: 8.321 MB / 0.6014 GB, free: 12.66 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.042e-05/0.4718, allocations: 77.34 kB / 0.6015 GB, free: 12.57 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003747/0.4755, allocations: 3.073 MB / 0.6045 GB, free: 9.477 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002458/0.4758, allocations: 61.7 kB / 0.6046 GB, free: 9.41 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001148/0.477, allocations: 2.428 MB / 0.6069 GB, free: 6.984 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000612/0.4776, allocations: 0.8379 MB / 0.6077 GB, free: 6.152 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004419/0.478, allocations: 424.9 kB / 0.6082 GB, free: 5.73 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 7.563e-05/0.4781, allocations: 305.1 kB / 0.6084 GB, free: 5.43 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002247/0.4804, allocations: 1.63 MB / 0.61 GB, free: 3.793 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003482/0.4839, allocations: 4.256 MB / 0.6142 GB, free: 14.25 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008685/0.4926, allocations: 6.389 MB / 0.6204 GB, free: 6.602 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.749e-05/0.4927, allocations: 28 kB / 0.6205 GB, free: 6.574 MB / 382.1 MB Notification: Performance of matching and sorting (n=659) (initialization): time 0.01256/0.5053, allocations: 6.492 MB / 0.6268 GB, free: 68 kB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.647e-05/0.5054, allocations: 44 kB / 0.6268 GB, free: 24 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001382/0.5055, allocations: 92.05 kB / 0.6269 GB, free: 15.93 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001974/0.5075, allocations: 0.7208 MB / 0.6276 GB, free: 15.2 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003537/0.5111, allocations: 1.045 MB / 0.6287 GB, free: 14.15 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01394/0.525, allocations: 12.46 MB / 0.6408 GB, free: 1.027 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003608/0.5287, allocations: 259.8 kB / 0.6411 GB, free: 0.7734 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006122/0.5293, allocations: 288 kB / 0.6413 GB, free: 0.4922 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 413 * Number of states: 0 () * Number of discrete variables: 27 (fixedTranslation3.color[3],fixedTranslation3.color[2],fixedTranslation3.color[1],fixedTranslation2.color[3],fixedTranslation2.color[2],fixedTranslation2.color[1],fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],prismatic1.boxColor[3],prismatic1.boxColor[2],prismatic1.boxColor[1],revolute4.cylinderColor[3],revolute4.cylinderColor[2],revolute4.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (583): * Single equations (assignments): 574 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,9,100.0%), (2,17,100.0%), (2,10,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,10)} Notification: Performance of prepare postOptimizeDAE: time 0.003189/0.5325, allocations: 1.791 MB / 0.6431 GB, free: 14.69 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004497/0.533, allocations: 284.3 kB / 0.6434 GB, free: 14.41 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005561/0.5385, allocations: 3.128 MB / 0.6464 GB, free: 11.25 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001343/0.5387, allocations: 39.92 kB / 0.6465 GB, free: 11.21 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.746e-05/0.5388, allocations: 4.469 kB / 0.6465 GB, free: 11.2 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.493e-05/0.5388, allocations: 11.95 kB / 0.6465 GB, free: 11.19 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01555/0.5544, allocations: 8.321 MB / 0.6546 GB, free: 2.719 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.416e-05/0.5544, allocations: 4 kB / 0.6546 GB, free: 2.715 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001086/0.5555, allocations: 295.5 kB / 0.6549 GB, free: 2.426 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001497/0.557, allocations: 0.5794 MB / 0.6554 GB, free: 1.832 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001208/0.5572, allocations: 43.94 kB / 0.6555 GB, free: 1.789 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01081/0.568, allocations: 10.75 MB / 0.666 GB, free: 6.367 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.397e-06/0.568, allocations: 15.92 kB / 0.666 GB, free: 6.352 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006968/0.575, allocations: 4.688 MB / 0.6706 GB, free: 1.582 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009118/0.5759, allocations: 365.4 kB / 0.6709 GB, free: 1.203 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003136/0.5762, allocations: 43.94 kB / 0.671 GB, free: 1.16 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001011/0.5773, allocations: 91.89 kB / 0.6711 GB, free: 1.07 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003007/0.5776, allocations: 153.7 kB / 0.6712 GB, free: 0.918 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001137/0.5777, allocations: 63.98 kB / 0.6713 GB, free: 0.8555 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002924/0.5806, allocations: 1.972 MB / 0.6732 GB, free: 14.88 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5806, allocations: 0 / 0.6732 GB, free: 14.88 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00383/0.5845, allocations: 0.9089 MB / 0.6741 GB, free: 13.97 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 4 (revolute1.phi,revolute1.w,revolute4.phi,revolute4.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 (170): * Single equations (assignments): 161 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,7,100.0%), (2,15,100.0%), (1,1,100.0%), (1,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,9)} Notification: Performance of Backend phase and start with SimCode phase: time 0.007549/0.592, allocations: 5.363 MB / 0.6793 GB, free: 8.516 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.009179/0.6012, allocations: 4.708 MB / 0.6839 GB, free: 3.766 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 9.538e-06/0.6013, allocations: 1.438 kB / 0.6839 GB, free: 3.766 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003013/0.6043, allocations: 1.988 MB / 0.6859 GB, free: 1.715 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003845/0.6082, allocations: 447.5 kB / 0.6863 GB, free: 1.281 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2581/0.8663, allocations: 41.38 MB / 0.7267 GB, free: 134.1 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002444/0.8688, allocations: 2.929 MB / 0.7295 GB, free: 133.3 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003021/0.8718, allocations: 1.374 MB / 0.7309 GB, free: 133.3 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001605/0.8734, allocations: 1.629 MB / 0.7325 GB, free: 132.2 MB / 462.1 MB Notification: Performance of SimCode: time 7.42e-07/0.8735, allocations: 0 / 0.7325 GB, free: 132.2 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07725/0.9507, allocations: 62.47 MB / 0.7935 GB, free: 74.96 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001532/0.9509, allocations: 230.7 kB / 0.7937 GB, free: 74.7 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.454/4.405, allocations: 3.938 kB / 0.7937 GB, free: 74.69 MB / 462.1 MB (rm -f PlanarMechanics_PlanarMechanics.Examples.KinematicLoop.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.KinematicLoop.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.KinematicLoop.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.KinematicLoop.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_Examples_KinematicLoop_fmu --startTime=0 --stopTime=6 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_Examples_KinematicLoop.fmu > PlanarMechanics_PlanarMechanics.Examples.KinematicLoop.pipe 2>&1)