Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.PendulumExcited.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.Examples.PendulumExcited,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_PendulumExcited",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.PendulumExcited,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_PendulumExcited",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.001324/0.001324, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.001402/0.001402, allocations: 177.3 kB / 15.95 MB, free: 216 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.446/1.446, allocations: 223.2 MB / 239.9 MB, free: 5.441 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1-master/package.mo): time 0.183/0.183, allocations: 9.106 MB / 300.1 MB, free: 2.742 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003232/0.0003235, allocations: 8 kB / 363.1 MB, free: 12.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1263/0.1266, allocations: 52.43 MB / 415.5 MB, free: 8.469 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PendulumExcited): time 0.2578/0.3844, allocations: 26.4 MB / 441.9 MB, free: 29.12 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01362/0.3981, allocations: 6.827 MB / 448.7 MB, free: 24.38 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005444/0.4036, allocations: 108.6 kB / 448.9 MB, free: 24.37 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005563/0.4092, allocations: 1.306 MB / 450.2 MB, free: 23.94 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01369/0.4229, allocations: 3.942 MB / 454.1 MB, free: 22.01 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001985/0.425, allocations: 135.9 kB / 454.2 MB, free: 21.94 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002908/0.4279, allocations: 1.416 MB / 455.7 MB, free: 21.24 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001152/0.4291, allocations: 0.875 MB / 456.5 MB, free: 20.93 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008394/0.4299, allocations: 0.6799 MB / 457.2 MB, free: 20.68 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009568/0.4309, allocations: 0.9734 MB / 458.2 MB, free: 20.34 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002673/0.4312, allocations: 131.4 kB / 458.3 MB, free: 20.34 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001075/0.4322, allocations: 0.6437 MB / 459 MB, free: 20.22 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006853/0.4329, allocations: 1.038 MB / 460 MB, free: 19.85 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004448/0.4334, allocations: 0.6414 MB / 460.6 MB, free: 19.37 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00288/0.4363, allocations: 3.731 MB / 464.4 MB, free: 18.52 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.406e-06/0.4363, allocations: 0 / 464.4 MB, free: 18.52 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.4363, allocations: 3.125 kB / 464.4 MB, free: 18.52 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001079/0.4364, allocations: 0 / 464.4 MB, free: 18.52 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: 1181 * Number of variables: 1181 Notification: Performance of Generate backend data structure: time 0.008159/0.4446, allocations: 3.749 MB / 468.1 MB, free: 16.82 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.271e-05/0.4446, allocations: 8.875 kB / 468.1 MB, free: 16.82 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008793/0.4455, allocations: 0.546 MB / 468.7 MB, free: 16.55 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008062/0.4536, allocations: 2.173 MB / 470.8 MB, free: 16.17 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003759/0.4574, allocations: 1.315 MB / 472.2 MB, free: 15.33 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001853/0.4576, allocations: 148.2 kB / 472.3 MB, free: 15.26 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007973/0.4584, allocations: 194.8 kB / 472.5 MB, free: 15.19 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01625/0.4747, allocations: 8.214 MB / 480.7 MB, free: 11.58 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.17e-05/0.4748, allocations: 19.75 kB / 480.7 MB, free: 11.57 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003434/0.4751, allocations: 95.02 kB / 480.8 MB, free: 11.5 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003779/0.4789, allocations: 1.918 MB / 482.7 MB, free: 11.11 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01759/0.4965, allocations: 7.457 MB / 490.2 MB, free: 8.242 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03926/0.5359, allocations: 24.89 MB / 0.503 GB, free: 15.36 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005468/0.5414, allocations: 2.41 MB / 0.5054 GB, free: 12.83 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00159/0.543, allocations: 1.689 MB / 0.507 GB, free: 10.88 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.864e-05/0.5431, allocations: 47.55 kB / 0.5071 GB, free: 10.82 MB / 382.1 MB Notification: Performance of pre-optimization done (n=150): time 4.468e-06/0.5431, allocations: 4 kB / 0.5071 GB, free: 10.82 MB / 382.1 MB Notification: Performance of matching and sorting (n=164): time 0.01378/0.5569, allocations: 5.558 MB / 0.5125 GB, free: 5.172 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.348e-05/0.557, allocations: 64.72 kB / 0.5126 GB, free: 5.098 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003979/0.561, allocations: 2.392 MB / 0.5149 GB, free: 2.668 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000195/0.5612, allocations: 49.7 kB / 0.5149 GB, free: 2.613 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001395/0.5626, allocations: 2.02 MB / 0.5169 GB, free: 0.5625 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006011/0.5632, allocations: 0.5936 MB / 0.5175 GB, free: 15.96 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001662/0.5634, allocations: 72 kB / 0.5176 GB, free: 15.89 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002658/0.5636, allocations: 478.1 kB / 0.518 GB, free: 15.42 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002187/0.5658, allocations: 1.249 MB / 0.5192 GB, free: 14.17 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003335/0.5692, allocations: 3.314 MB / 0.5225 GB, free: 9.844 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003287/0.5725, allocations: 2.041 MB / 0.5245 GB, free: 7.805 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.736e-05/0.5725, allocations: 20 kB / 0.5245 GB, free: 7.785 MB / 398.1 MB Notification: Performance of matching and sorting (n=489) (initialization): time 0.008754/0.5813, allocations: 4.677 MB / 0.529 GB, free: 3.098 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.953e-05/0.5814, allocations: 36 kB / 0.5291 GB, free: 3.062 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.341e-05/0.5815, allocations: 72.98 kB / 0.5292 GB, free: 2.992 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007086/0.5823, allocations: 244.7 kB / 0.5294 GB, free: 2.75 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002815/0.5851, allocations: 0.8421 MB / 0.5302 GB, free: 1.906 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003215/0.5883, allocations: 2.684 MB / 0.5328 GB, free: 15.09 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002796/0.5911, allocations: 187.9 kB / 0.533 GB, free: 14.9 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003757/0.5915, allocations: 220 kB / 0.5332 GB, free: 14.69 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 329 * Number of states: 0 () * Number of discrete variables: 21 (worldForce.arrowTorque.twoHeadedArrow,worldForce.arrowTorque.headAtOrigin,worldForce.arrowForce.twoHeadedArrow,worldForce.arrowForce.headAtOrigin,cutForce.arrowForce.twoHeadedArrow,cutForce.arrowForce.headAtOrigin,worldForce.color[3],worldForce.color[2],worldForce.color[1],cutForce.forceColor[3],cutForce.forceColor[2],cutForce.forceColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[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 (451): * Single equations (assignments): 446 * 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%) 12} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002864/0.5944, allocations: 1.584 MB / 0.5348 GB, free: 13.09 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004272/0.5948, allocations: 217.1 kB / 0.535 GB, free: 12.87 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003805/0.5986, allocations: 2.3 MB / 0.5372 GB, free: 10.55 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001048/0.5988, allocations: 35.95 kB / 0.5373 GB, free: 10.52 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.835e-06/0.5988, allocations: 0 / 0.5373 GB, free: 10.52 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.421e-05/0.5988, allocations: 7.922 kB / 0.5373 GB, free: 10.51 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01117/0.61, allocations: 6.423 MB / 0.5435 GB, free: 3.91 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.227e-05/0.61, allocations: 8.125 kB / 0.5435 GB, free: 3.902 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009799/0.611, allocations: 251.6 kB / 0.5438 GB, free: 3.656 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003972/0.6114, allocations: 136.8 kB / 0.5439 GB, free: 3.52 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.245e-05/0.6115, allocations: 31.95 kB / 0.5439 GB, free: 3.488 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002483/0.614, allocations: 2.339 MB / 0.5462 GB, free: 1.012 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.534e-06/0.614, allocations: 11.94 kB / 0.5462 GB, free: 1 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005274/0.6193, allocations: 3.881 MB / 0.55 GB, free: 12.86 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000852/0.6202, allocations: 306.2 kB / 0.5503 GB, free: 12.54 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002605/0.6205, allocations: 31.98 kB / 0.5503 GB, free: 12.51 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008479/0.6213, allocations: 71.92 kB / 0.5504 GB, free: 12.44 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002241/0.6216, allocations: 120.7 kB / 0.5505 GB, free: 12.33 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001024/0.6217, allocations: 48 kB / 0.5506 GB, free: 12.28 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002696/0.6244, allocations: 1.56 MB / 0.5521 GB, free: 10.7 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.6244, allocations: 0 / 0.5521 GB, free: 10.7 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003385/0.6278, allocations: 0.6523 MB / 0.5527 GB, free: 10.05 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 26 * 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 (126): * Single equations (assignments): 121 * 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%) 10} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.006074/0.6339, allocations: 6.062 MB / 0.5587 GB, free: 3.781 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.006278/0.6402, allocations: 3.105 MB / 0.5617 GB, free: 0.6836 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.249e-05/0.6403, allocations: 4 kB / 0.5617 GB, free: 0.6797 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001837/0.6421, allocations: 1.119 MB / 0.5628 GB, free: 15.55 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002143/0.6443, allocations: 371.1 kB / 0.5631 GB, free: 15.19 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2409/0.8852, allocations: 69.92 MB / 0.6314 GB, free: 55.51 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002622/0.8879, allocations: 2.667 MB / 0.634 GB, free: 54.73 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002609/0.8905, allocations: 1.189 MB / 0.6352 GB, free: 54.65 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001412/0.8919, allocations: 1.319 MB / 0.6365 GB, free: 54.64 MB / 446.1 MB Notification: Performance of SimCode: time 1.122e-06/0.8919, allocations: 0 / 0.6365 GB, free: 54.64 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09135/0.9833, allocations: 51.16 MB / 0.6864 GB, free: 28.36 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000145/0.9835, allocations: 192.3 kB / 0.6866 GB, free: 28.12 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.791/3.775, allocations: 0 / 0.6866 GB, free: 28.12 MB / 446.1 MB (rm -f PlanarMechanics_PlanarMechanics.Examples.PendulumExcited.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.PendulumExcited.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.PendulumExcited.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.PendulumExcited.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_Examples_PendulumExcited_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_Examples_PendulumExcited.fmu > PlanarMechanics_PlanarMechanics.Examples.PendulumExcited.pipe 2>&1) Environment - environmentSimulation: