Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.MeasureDemo.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.00139/0.00139, allocations: 113.5 kB / 19.73 MB, free: 2.242 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.001539/0.001539, allocations: 212.1 kB / 23.04 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.649/1.649, allocations: 230.6 MB / 256.8 MB, free: 7.996 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.04887/0.04887, allocations: 9.244 MB / 322.5 MB, free: 10.05 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.MeasureDemo,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_MeasureDemo",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.MeasureDemo,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_MeasureDemo",fmuType="cs",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.002027/0.002027, allocations: 67.89 kB / 448.5 MB, free: 15.06 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1301/0.1321, allocations: 55.47 MB / 0.4922 GB, free: 7.512 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.MeasureDemo): time 0.01705/0.1491, allocations: 13.89 MB / 0.5057 GB, free: 9.562 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01049/0.1596, allocations: 4.073 MB / 0.5097 GB, free: 5.477 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003358/0.163, allocations: 63.75 kB / 0.5098 GB, free: 5.414 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001979/0.165, allocations: 400.6 kB / 0.5102 GB, free: 5.02 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00381/0.1688, allocations: 0.9283 MB / 0.5111 GB, free: 4.086 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002551/0.1713, allocations: 0.9831 MB / 0.512 GB, free: 3.102 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00469/0.176, allocations: 2.226 MB / 0.5142 GB, free: 0.8672 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.3028/0.4788, allocations: 2.045 MB / 0.5162 GB, free: 7.949 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001656/0.4804, allocations: 1.049 MB / 0.5172 GB, free: 7.91 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001867/0.4823, allocations: 1.277 MB / 0.5185 GB, free: 7.676 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007251/0.483, allocations: 312.3 kB / 0.5188 GB, free: 7.676 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001633/0.4847, allocations: 0.7539 MB / 0.5195 GB, free: 7.676 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000982/0.4856, allocations: 0.9665 MB / 0.5205 GB, free: 7.559 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001609/0.4872, allocations: 1.485 MB / 0.5219 GB, free: 7.125 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006225/0.4935, allocations: 3.894 MB / 0.5257 GB, free: 6.531 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.464e-06/0.4935, allocations: 0.6562 kB / 0.5257 GB, free: 6.531 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.016e-06/0.4935, allocations: 2.375 kB / 0.5257 GB, free: 6.531 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002048/0.4937, allocations: 0 / 0.5257 GB, free: 6.531 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: 869 * Number of variables: 869 Notification: Performance of Generate backend data structure: time 0.01604/0.5097, allocations: 4.212 MB / 0.5298 GB, free: 5.367 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.658e-05/0.5098, allocations: 11.72 kB / 0.5298 GB, free: 5.367 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001564/0.5099, allocations: 81.67 kB / 0.5299 GB, free: 5.359 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001307/0.5112, allocations: 450.2 kB / 0.5303 GB, free: 5.301 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001022/0.5123, allocations: 309.9 kB / 0.5306 GB, free: 5.133 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002593/0.5149, allocations: 1.078 MB / 0.5317 GB, free: 4.816 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001686/0.515, allocations: 211.5 kB / 0.5319 GB, free: 4.809 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000466/0.5155, allocations: 295.8 kB / 0.5322 GB, free: 4.801 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01149/0.527, allocations: 4.738 MB / 0.5368 GB, free: 2.254 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001669/0.5271, allocations: 43.83 kB / 0.5368 GB, free: 2.242 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003234/0.5275, allocations: 129.9 kB / 0.537 GB, free: 2.16 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007313/0.5282, allocations: 427.9 kB / 0.5374 GB, free: 2.098 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009052/0.5373, allocations: 3.379 MB / 0.5407 GB, free: 1.062 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03207/0.5693, allocations: 21.49 MB / 0.5617 GB, free: 14.93 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005629/0.575, allocations: 1.443 MB / 0.5631 GB, free: 14.27 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001482/0.5764, allocations: 0.6708 MB / 0.5637 GB, free: 13.94 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008101/0.5845, allocations: 3.575 MB / 0.5672 GB, free: 11.39 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.194e-05/0.5846, allocations: 42.28 kB / 0.5673 GB, free: 11.35 MB / 414.1 MB Notification: Performance of pre-optimization done (n=102): time 3.868e-06/0.5846, allocations: 8 kB / 0.5673 GB, free: 11.34 MB / 414.1 MB Notification: Performance of matching and sorting (n=140): time 0.02649/0.6111, allocations: 9.304 MB / 0.5763 GB, free: 2.074 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.255e-05/0.6111, allocations: 68.7 kB / 0.5764 GB, free: 1.996 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003771/0.6149, allocations: 1.815 MB / 0.5782 GB, free: 188 kB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002183/0.6151, allocations: 45.7 kB / 0.5782 GB, free: 136 kB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001759/0.6169, allocations: 1.807 MB / 0.58 GB, free: 14.33 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007868/0.6177, allocations: 0.5454 MB / 0.5805 GB, free: 13.79 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001349/0.619, allocations: 0.7469 MB / 0.5813 GB, free: 13.04 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001989/0.6192, allocations: 365.9 kB / 0.5816 GB, free: 12.68 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002229/0.6215, allocations: 1.222 MB / 0.5828 GB, free: 11.45 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004049/0.6255, allocations: 3.409 MB / 0.5861 GB, free: 7.004 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007043/0.6325, allocations: 5.122 MB / 0.5911 GB, free: 1.117 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.474e-05/0.6326, allocations: 24 kB / 0.5911 GB, free: 1.094 MB / 430.1 MB Notification: Performance of matching and sorting (n=485) (initialization): time 0.009602/0.6422, allocations: 4.819 MB / 0.5959 GB, free: 12.74 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001003/0.6423, allocations: 40 kB / 0.5959 GB, free: 12.7 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001404/0.6425, allocations: 76 kB / 0.596 GB, free: 12.62 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001078/0.6435, allocations: 368 kB / 0.5963 GB, free: 12.27 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003519/0.6471, allocations: 0.8936 MB / 0.5972 GB, free: 11.45 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006315/0.6534, allocations: 4.195 MB / 0.6013 GB, free: 7.188 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003851/0.6572, allocations: 207.8 kB / 0.6015 GB, free: 6.984 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000819/0.658, allocations: 236 kB / 0.6017 GB, free: 6.754 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 352 * Number of states: 0 () * Number of discrete variables: 18 (revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[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 (464): * Single equations (assignments): 463 * Array equations: 0 * 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,20,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002774/0.6608, allocations: 0.9326 MB / 0.6026 GB, free: 5.879 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004845/0.6613, allocations: 199.1 kB / 0.6028 GB, free: 5.684 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004992/0.6663, allocations: 2.591 MB / 0.6053 GB, free: 3.078 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.849e-05/0.6663, allocations: 16 kB / 0.6054 GB, free: 3.062 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.177e-05/0.6663, allocations: 4 kB / 0.6054 GB, free: 3.059 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.18e-05/0.6663, allocations: 12.61 kB / 0.6054 GB, free: 3.047 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01357/0.6799, allocations: 6.379 MB / 0.6116 GB, free: 12.57 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.331e-05/0.6799, allocations: 4 kB / 0.6116 GB, free: 12.57 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001207/0.6811, allocations: 271.6 kB / 0.6119 GB, free: 12.3 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007859/0.6819, allocations: 252.8 kB / 0.6121 GB, free: 12.05 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001135/0.682, allocations: 32 kB / 0.6121 GB, free: 12.02 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004477/0.6865, allocations: 3.36 MB / 0.6154 GB, free: 8.555 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.219e-06/0.6865, allocations: 4 kB / 0.6154 GB, free: 8.551 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006093/0.6926, allocations: 3.905 MB / 0.6192 GB, free: 4.578 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009406/0.6935, allocations: 174.7 kB / 0.6194 GB, free: 4.406 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006559/0.6942, allocations: 32 kB / 0.6194 GB, free: 4.375 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001422/0.6956, allocations: 99.84 kB / 0.6195 GB, free: 4.277 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003389/0.696, allocations: 108.7 kB / 0.6196 GB, free: 4.172 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001107/0.6961, allocations: 37.19 kB / 0.6197 GB, free: 4.137 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002565/0.6986, allocations: 1.088 MB / 0.6207 GB, free: 3.059 MB / 462.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.6986, allocations: 0 / 0.6207 GB, free: 3.059 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003851/0.7025, allocations: 0.6289 MB / 0.6213 GB, free: 2.43 MB / 462.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,revolute2.phi,revolute2.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 (121): * Single equations (assignments): 120 * Array equations: 0 * 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,18,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.006751/0.7092, allocations: 4.491 MB / 0.6257 GB, free: 13.86 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.006417/0.7157, allocations: 3.198 MB / 0.6288 GB, free: 10.66 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.313e-05/0.7157, allocations: 0 / 0.6288 GB, free: 10.66 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001937/0.7176, allocations: 1.209 MB / 0.63 GB, free: 9.438 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002624/0.7202, allocations: 467.4 kB / 0.6305 GB, free: 9.016 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04311/0.7633, allocations: 24.57 MB / 0.6545 GB, free: 13.46 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002578/0.7659, allocations: 1.82 MB / 0.6562 GB, free: 11.61 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.00261/0.7685, allocations: 0.8669 MB / 0.6571 GB, free: 10.74 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002053/0.7706, allocations: 1.054 MB / 0.6581 GB, free: 9.688 MB / 0.4981 GB Notification: Performance of SimCode: time 1.834e-06/0.7706, allocations: 0 / 0.6581 GB, free: 9.688 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.141/0.9116, allocations: 48.92 MB / 0.7059 GB, free: 8.988 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.08/17.99, allocations: 11.06 kB / 0.7059 GB, free: 8.98 MB / 0.545 GB " [Timeout remaining time 642] (rm -f PlanarMechanics_PlanarMechanics.Examples.MeasureDemo.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.MeasureDemo.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.MeasureDemo.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.MeasureDemo.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_Examples_MeasureDemo_fmu --startTime=0 --stopTime=10 --stepSize=0.004 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_Examples_MeasureDemo.fmu > PlanarMechanics_PlanarMechanics.Examples.MeasureDemo.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 21.167629232048057] Failed to read output from testmodel.py, exit status != 0: 18.191745655960403 18.223879723 17.723769919 Calling exit ...