Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001467/0.001467, allocations: 108.2 kB / 16.46 MB, free: 6.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00178/0.00178, allocations: 191.8 kB / 19.41 MB, free: 3.539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.37/1.37, allocations: 225.6 MB / 247.8 MB, free: 13.95 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.0462/0.0462, allocations: 9.242 MB / 311.9 MB, free: 0.7461 MB / 238.1 MB " [Timeout remaining time 180] Using package PlanarMechanics with version 1.6.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/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.PowerDistanceDemo,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_PowerDistanceDemo",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.PowerDistanceDemo,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_PowerDistanceDemo",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001816/0.001816, allocations: 63.91 kB / 434 MB, free: 14.04 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09277/0.09459, allocations: 54.26 MB / 488.3 MB, free: 7.699 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PowerDistanceDemo): time 0.01249/0.1071, allocations: 10.75 MB / 499 MB, free: 12.9 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00674/0.1138, allocations: 2.969 MB / 0.4902 GB, free: 9.922 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001355/0.1152, allocations: 39.94 kB / 0.4903 GB, free: 9.883 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001133/0.1163, allocations: 480.8 kB / 0.4907 GB, free: 9.41 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004069/0.1204, allocations: 1.708 MB / 0.4924 GB, free: 7.695 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004874/0.1209, allocations: 179.7 kB / 0.4926 GB, free: 7.52 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.003962/0.1248, allocations: 3.126 MB / 0.4956 GB, free: 4.387 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001543/0.1264, allocations: 0.9695 MB / 0.4966 GB, free: 3.391 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002077/0.1284, allocations: 1.124 MB / 0.4977 GB, free: 2.262 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003184/0.1316, allocations: 1.763 MB / 0.4994 GB, free: 0.4922 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006256/0.1323, allocations: 292 kB / 0.4997 GB, free: 212 kB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001833/0.1341, allocations: 0.9246 MB / 0.5006 GB, free: 15.28 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001621/0.1357, allocations: 1.546 MB / 0.5021 GB, free: 13.73 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002184/0.1379, allocations: 1.953 MB / 0.504 GB, free: 11.77 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007328/0.1452, allocations: 6.111 MB / 0.51 GB, free: 5.629 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.78e-06/0.1452, allocations: 0 / 0.51 GB, free: 5.629 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.1452, allocations: 0 / 0.51 GB, free: 5.629 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001752/0.1454, allocations: 4 kB / 0.51 GB, free: 5.625 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1467 * Number of variables: 1467 Notification: Performance of Generate backend data structure: time 0.01026/0.1557, allocations: 4.682 MB / 0.5145 GB, free: 0.8672 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.234e-05/0.1557, allocations: 12.03 kB / 0.5145 GB, free: 0.8555 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008679/0.1566, allocations: 0.6716 MB / 0.5152 GB, free: 176 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1988/0.3554, allocations: 1.928 MB / 0.5171 GB, free: 33.35 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00369/0.3591, allocations: 1.604 MB / 0.5187 GB, free: 32.96 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001563/0.3592, allocations: 190.6 kB / 0.5188 GB, free: 32.96 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006095/0.3599, allocations: 253.2 kB / 0.5191 GB, free: 32.95 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01483/0.3747, allocations: 9.783 MB / 0.5286 GB, free: 28.83 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.897e-05/0.3748, allocations: 34.33 kB / 0.5287 GB, free: 28.81 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003634/0.3751, allocations: 123.2 kB / 0.5288 GB, free: 28.77 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004105/0.3792, allocations: 2.302 MB / 0.531 GB, free: 28.31 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01653/0.3958, allocations: 8.476 MB / 0.5393 GB, free: 23.85 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03879/0.4346, allocations: 30.64 MB / 0.5692 GB, free: 8.867 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006449/0.441, allocations: 2.701 MB / 0.5719 GB, free: 6.051 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001777/0.4428, allocations: 0.974 MB / 0.5728 GB, free: 5.074 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009974/0.4528, allocations: 5.852 MB / 0.5785 GB, free: 14.78 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.897e-05/0.4528, allocations: 43.88 kB / 0.5786 GB, free: 14.73 MB / 414.1 MB Notification: Performance of pre-optimization done (n=159): time 4.469e-06/0.4528, allocations: 0 / 0.5786 GB, free: 14.73 MB / 414.1 MB Notification: Performance of matching and sorting (n=181): time 0.01815/0.471, allocations: 8.338 MB / 0.5867 GB, free: 6.316 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.604e-05/0.471, allocations: 69.56 kB / 0.5868 GB, free: 6.238 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004653/0.4757, allocations: 3.203 MB / 0.5899 GB, free: 3.02 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002081/0.4759, allocations: 49.7 kB / 0.59 GB, free: 2.965 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00201/0.4779, allocations: 2.714 MB / 0.5926 GB, free: 232 kB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007251/0.4786, allocations: 0.7015 MB / 0.5933 GB, free: 15.52 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001278/0.4799, allocations: 0.9887 MB / 0.5943 GB, free: 14.52 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001199/0.48, allocations: 301.1 kB / 0.5945 GB, free: 14.22 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002631/0.4826, allocations: 1.567 MB / 0.5961 GB, free: 12.65 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004861/0.4875, allocations: 4.357 MB / 0.6003 GB, free: 6.906 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00822/0.4957, allocations: 6.388 MB / 0.6066 GB, free: 15.15 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.566e-05/0.4958, allocations: 31.94 kB / 0.6066 GB, free: 15.12 MB / 446.1 MB Notification: Performance of matching and sorting (n=642) (initialization): time 0.01075/0.5065, allocations: 6.025 MB / 0.6125 GB, free: 9.086 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.426e-05/0.5066, allocations: 48.94 kB / 0.6125 GB, free: 9.039 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001354/0.5068, allocations: 100 kB / 0.6126 GB, free: 8.941 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009367/0.5077, allocations: 383.2 kB / 0.613 GB, free: 8.566 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003517/0.5112, allocations: 1.096 MB / 0.6141 GB, free: 7.469 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005136/0.5163, allocations: 3.7 MB / 0.6177 GB, free: 3.625 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003405/0.5198, allocations: 257.8 kB / 0.6179 GB, free: 3.375 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007746/0.5205, allocations: 292 kB / 0.6182 GB, free: 3.09 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 446 * Number of states: 0 () * Number of discrete variables: 30 (distance.arrowColor[3],distance.arrowColor[2],distance.arrowColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],damper.color_b[3],damper.color_b[2],damper.color_b[1],damper.color_a[3],damper.color_a[2],damper.color_a[1],damper.colorConnector_b[3],damper.colorConnector_b[2],damper.colorConnector_b[1],damper.colorConnector_a[3],damper.colorConnector_a[2],damper.colorConnector_a[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[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 (597): * Single equations (assignments): 591 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,17,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004005/0.5245, allocations: 1.886 MB / 0.62 GB, free: 1.195 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007276/0.5253, allocations: 286.1 kB / 0.6203 GB, free: 0.9141 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004984/0.5302, allocations: 2.414 MB / 0.6227 GB, free: 14.48 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001799/0.5304, allocations: 39.97 kB / 0.6227 GB, free: 14.44 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.138e-05/0.5304, allocations: 4 kB / 0.6227 GB, free: 14.44 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.801e-05/0.5305, allocations: 11.91 kB / 0.6227 GB, free: 14.43 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01388/0.5443, allocations: 6.841 MB / 0.6294 GB, free: 7.453 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-05/0.5443, allocations: 7.938 kB / 0.6294 GB, free: 7.445 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001078/0.5454, allocations: 255.7 kB / 0.6297 GB, free: 7.195 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006972/0.5461, allocations: 245 kB / 0.6299 GB, free: 6.953 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001245/0.5462, allocations: 39.97 kB / 0.6299 GB, free: 6.914 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003804/0.5501, allocations: 2.961 MB / 0.6328 GB, free: 3.82 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.668e-06/0.5501, allocations: 4 kB / 0.6328 GB, free: 3.816 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006269/0.5563, allocations: 3.748 MB / 0.6365 GB, free: 15.99 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001013/0.5573, allocations: 363.1 kB / 0.6368 GB, free: 15.62 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005846/0.5579, allocations: 32 kB / 0.6369 GB, free: 15.59 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001268/0.5592, allocations: 79.91 kB / 0.6369 GB, free: 15.51 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002255/0.5594, allocations: 105.1 kB / 0.637 GB, free: 15.41 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001185/0.5595, allocations: 56.27 kB / 0.6371 GB, free: 15.36 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.004155/0.5637, allocations: 2.033 MB / 0.6391 GB, free: 13.32 MB / 478.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.5637, allocations: 0 / 0.6391 GB, free: 13.32 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004535/0.5682, allocations: 0.8552 MB / 0.6399 GB, free: 12.46 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 4 (revolute.phi,revolute.w,prismatic.s,prismatic.v) * 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 (143): * Single equations (assignments): 137 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.007384/0.5756, allocations: 4.396 MB / 0.6442 GB, free: 7.988 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.00698/0.5826, allocations: 3.715 MB / 0.6478 GB, free: 4.281 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 6.703e-06/0.5826, allocations: 0 / 0.6478 GB, free: 4.281 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002014/0.5846, allocations: 1.136 MB / 0.6489 GB, free: 3.133 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002644/0.5873, allocations: 471 kB / 0.6494 GB, free: 2.68 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05547/0.6427, allocations: 34.47 MB / 0.6831 GB, free: 12.23 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003796/0.6465, allocations: 3.007 MB / 0.686 GB, free: 9.184 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.00352/0.65, allocations: 1.428 MB / 0.6874 GB, free: 7.75 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002518/0.6526, allocations: 1.686 MB / 0.689 GB, free: 6.062 MB / 0.5137 GB Notification: Performance of SimCode: time 1.212e-06/0.6526, allocations: 3.938 kB / 0.689 GB, free: 6.059 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3136/0.9662, allocations: 54.71 MB / 0.7425 GB, free: 183.3 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.75/20.71, allocations: 14.97 kB / 0.7425 GB, free: 183.3 MB / 0.545 GB " [Timeout remaining time 639] (rm -f PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_Examples_PowerDistanceDemo_fmu --startTime=0 --stopTime=6 --stepSize=0.0024 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_Examples_PowerDistanceDemo.fmu > PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 23.147713222075254] Failed to read output from testmodel.py, exit status != 0: 20.831888685002923 20.851090591 20.702060404 Calling exit ...