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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001466/0.001466, allocations: 114.5 kB / 18.94 MB, free: 2.934 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001497/0.001497, allocations: 217 kB / 22.25 MB, free: 5.082 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.597/1.597, allocations: 230.6 MB / 256 MB, free: 8.027 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.0549/0.0549, allocations: 9.246 MB / 321.7 MB, free: 10.07 MB / 254.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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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: PlanarMechanics requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002097/0.002097, allocations: 71.88 kB / 447.7 MB, free: 15.07 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1433/0.1454, allocations: 55.46 MB / 0.4914 GB, free: 7.523 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PowerDistanceDemo): time 0.01416/0.1596, allocations: 10.77 MB / 0.5019 GB, free: 12.71 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00826/0.1679, allocations: 3.01 MB / 0.5049 GB, free: 9.688 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002019/0.1699, allocations: 51.81 kB / 0.5049 GB, free: 9.637 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001317/0.1712, allocations: 464.8 kB / 0.5054 GB, free: 9.18 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005232/0.1764, allocations: 1.716 MB / 0.507 GB, free: 7.457 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005564/0.177, allocations: 179.7 kB / 0.5072 GB, free: 7.281 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.005452/0.1824, allocations: 3.088 MB / 0.5102 GB, free: 4.184 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00213/0.1846, allocations: 0.9504 MB / 0.5111 GB, free: 3.211 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002492/0.187, allocations: 1.144 MB / 0.5123 GB, free: 2.062 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003496/0.1905, allocations: 1.771 MB / 0.514 GB, free: 292 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005994/0.1911, allocations: 292 kB / 0.5143 GB, free: 0 / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.3282/0.5194, allocations: 0.9238 MB / 0.5152 GB, free: 9.848 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002365/0.5217, allocations: 1.526 MB / 0.5167 GB, free: 9.848 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002528/0.5243, allocations: 1.936 MB / 0.5186 GB, free: 9.199 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01079/0.535, allocations: 6.07 MB / 0.5245 GB, free: 8.184 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.942e-06/0.535, allocations: 1.094 kB / 0.5245 GB, free: 8.184 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.535, allocations: 0 / 0.5245 GB, free: 8.184 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000246/0.5353, allocations: 2.156 kB / 0.5245 GB, free: 8.184 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.01676/0.552, allocations: 4.625 MB / 0.529 GB, free: 6.5 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.064e-05/0.5521, allocations: 9.219 kB / 0.529 GB, free: 6.5 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002037/0.5541, allocations: 0.6727 MB / 0.5297 GB, free: 6.426 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008504/0.5626, allocations: 1.936 MB / 0.5316 GB, free: 6.152 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005489/0.5681, allocations: 1.54 MB / 0.5331 GB, free: 5.742 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000396/0.5685, allocations: 191 kB / 0.5332 GB, free: 5.734 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008398/0.5694, allocations: 254.4 kB / 0.5335 GB, free: 5.727 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02346/0.5928, allocations: 9.785 MB / 0.543 GB, free: 1.816 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001125/0.5929, allocations: 25.62 kB / 0.5431 GB, free: 1.816 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004239/0.5934, allocations: 124.1 kB / 0.5432 GB, free: 1.773 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00425/0.5976, allocations: 2.299 MB / 0.5454 GB, free: 0.875 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02192/0.6195, allocations: 8.481 MB / 0.5537 GB, free: 12.22 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06426/0.6838, allocations: 30.55 MB / 0.5836 GB, free: 13.49 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007257/0.691, allocations: 2.244 MB / 0.5857 GB, free: 11.25 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002115/0.6932, allocations: 0.9777 MB / 0.5867 GB, free: 10.28 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0108/0.704, allocations: 3.959 MB / 0.5906 GB, free: 6.344 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.117e-05/0.704, allocations: 47.88 kB / 0.5906 GB, free: 6.285 MB / 430.1 MB Notification: Performance of pre-optimization done (n=159): time 5.1e-06/0.704, allocations: 0 / 0.5906 GB, free: 6.285 MB / 430.1 MB Notification: Performance of matching and sorting (n=181): time 0.02081/0.7248, allocations: 8.184 MB / 0.5986 GB, free: 14.11 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.438e-05/0.7249, allocations: 72.72 kB / 0.5987 GB, free: 14.02 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006281/0.7312, allocations: 3.207 MB / 0.6018 GB, free: 10.8 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002755/0.7315, allocations: 49.7 kB / 0.6019 GB, free: 10.74 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002591/0.734, allocations: 2.709 MB / 0.6045 GB, free: 8.047 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001063/0.7351, allocations: 0.7077 MB / 0.6052 GB, free: 7.348 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001745/0.7369, allocations: 0.9803 MB / 0.6061 GB, free: 6.359 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001425/0.737, allocations: 305.1 kB / 0.6064 GB, free: 6.059 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003204/0.7402, allocations: 1.571 MB / 0.608 GB, free: 4.48 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005906/0.7461, allocations: 4.359 MB / 0.6122 GB, free: 14.78 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01023/0.7563, allocations: 6.383 MB / 0.6185 GB, free: 7.426 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.576e-05/0.7564, allocations: 32 kB / 0.6185 GB, free: 7.395 MB / 462.1 MB Notification: Performance of matching and sorting (n=642) (initialization): time 0.01415/0.7706, allocations: 6.04 MB / 0.6244 GB, free: 1.461 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.403e-05/0.7706, allocations: 44 kB / 0.6244 GB, free: 1.418 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001216/0.7708, allocations: 100 kB / 0.6245 GB, free: 1.32 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001118/0.7719, allocations: 378.5 kB / 0.6249 GB, free: 0.9531 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004006/0.7759, allocations: 1.096 MB / 0.626 GB, free: 15.86 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005629/0.7815, allocations: 3.599 MB / 0.6295 GB, free: 12.15 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005019/0.7865, allocations: 247.8 kB / 0.6297 GB, free: 11.91 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001015/0.7875, allocations: 296 kB / 0.63 GB, free: 11.62 MB / 478.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.005134/0.7927, allocations: 1.891 MB / 0.6318 GB, free: 9.723 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008573/0.7935, allocations: 286.1 kB / 0.6321 GB, free: 9.438 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005297/0.7988, allocations: 2.406 MB / 0.6345 GB, free: 7.012 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001896/0.799, allocations: 51.8 kB / 0.6345 GB, free: 6.965 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.085e-05/0.799, allocations: 4 kB / 0.6345 GB, free: 6.961 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.184e-05/0.7991, allocations: 15.02 kB / 0.6345 GB, free: 6.949 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01573/0.8148, allocations: 6.812 MB / 0.6412 GB, free: 56 kB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.279e-05/0.8148, allocations: 8.062 kB / 0.6412 GB, free: 48 kB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001225/0.816, allocations: 255.7 kB / 0.6414 GB, free: 15.8 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000711/0.8167, allocations: 248.5 kB / 0.6417 GB, free: 15.55 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001159/0.8169, allocations: 38.42 kB / 0.6417 GB, free: 15.52 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004168/0.821, allocations: 2.849 MB / 0.6445 GB, free: 12.55 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.35e-06/0.821, allocations: 8.062 kB / 0.6445 GB, free: 12.55 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007135/0.8282, allocations: 3.744 MB / 0.6481 GB, free: 8.742 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001487/0.8297, allocations: 286.1 kB / 0.6484 GB, free: 8.461 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004191/0.8301, allocations: 28 kB / 0.6484 GB, free: 8.434 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001057/0.8311, allocations: 87.84 kB / 0.6485 GB, free: 8.348 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002775/0.8314, allocations: 116.1 kB / 0.6486 GB, free: 8.238 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000318/0.8317, allocations: 55.98 kB / 0.6487 GB, free: 8.184 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003911/0.8356, allocations: 2.041 MB / 0.6507 GB, free: 6.141 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.8356, allocations: 0 / 0.6507 GB, free: 6.141 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.005297/0.8409, allocations: 0.8241 MB / 0.6515 GB, free: 5.316 MB / 494.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.00705/0.848, allocations: 4.394 MB / 0.6558 GB, free: 0.8477 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.007771/0.8558, allocations: 3.721 MB / 0.6594 GB, free: 13.14 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 7.765e-06/0.8558, allocations: 0 / 0.6594 GB, free: 13.14 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.002151/0.8579, allocations: 1.145 MB / 0.6605 GB, free: 11.98 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002672/0.8606, allocations: 466.3 kB / 0.661 GB, free: 11.54 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07284/0.9334, allocations: 34.55 MB / 0.6947 GB, free: 5.035 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004829/0.9383, allocations: 3.003 MB / 0.6977 GB, free: 2 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.004505/0.9428, allocations: 1.436 MB / 0.6991 GB, free: 0.5586 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002678/0.9454, allocations: 1.686 MB / 0.7007 GB, free: 14.87 MB / 0.545 GB Notification: Performance of SimCode: time 1.142e-06/0.9454, allocations: 0 / 0.7007 GB, free: 14.87 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4588/1.404, allocations: 58.66 MB / 0.758 GB, free: 164.3 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 24.7/26.11, allocations: 3.453 kB / 0.758 GB, free: 164.3 MB / 0.545 GB " [Timeout remaining time 634] (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 & python3 -m fmpy simulate --output-file PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo_res.csv --start-time 0 --stop-time 6 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0024 PlanarMechanics_PlanarMechanics_Examples_PowerDistanceDemo.fmu > PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 29.297149287998764] Failed to read output from testmodel.py, exit status != 0: 26.254521922001004 26.266838653 25.728986622 Calling exit ...