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.001543/0.001543, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.001896/0.001896, allocations: 220.1 kB / 22.26 MB, free: 5.125 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.709/1.709, allocations: 230.6 MB / 256 MB, free: 7.969 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.05414/0.05414, allocations: 9.239 MB / 321.7 MB, free: 10.02 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.MeasureDemo,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_MeasureDemo",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.002086/0.002086, allocations: 65.94 kB / 447.7 MB, free: 15.17 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1594/0.1615, allocations: 55.47 MB / 0.4914 GB, free: 7.605 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.MeasureDemo): time 0.01824/0.1797, allocations: 13.89 MB / 0.505 GB, free: 9.656 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01116/0.1909, allocations: 4.081 MB / 0.509 GB, free: 5.562 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00166/0.1926, allocations: 59.75 kB / 0.509 GB, free: 5.504 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001257/0.1938, allocations: 400.7 kB / 0.5094 GB, free: 5.109 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002949/0.1968, allocations: 0.9244 MB / 0.5103 GB, free: 4.18 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002635/0.1994, allocations: 0.987 MB / 0.5113 GB, free: 3.191 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003419/0.2028, allocations: 2.228 MB / 0.5134 GB, free: 0.957 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.3675/0.5703, allocations: 2.036 MB / 0.5154 GB, free: 7.871 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002198/0.5725, allocations: 1.051 MB / 0.5165 GB, free: 7.832 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002255/0.5748, allocations: 1.279 MB / 0.5177 GB, free: 7.598 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007517/0.5755, allocations: 312.3 kB / 0.518 GB, free: 7.598 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001939/0.5775, allocations: 0.7454 MB / 0.5187 GB, free: 7.598 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001095/0.5786, allocations: 0.9712 MB / 0.5197 GB, free: 7.48 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001975/0.5805, allocations: 1.488 MB / 0.5211 GB, free: 7.047 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006673/0.5872, allocations: 3.895 MB / 0.5249 GB, free: 6.449 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.822e-06/0.5872, allocations: 1.969 kB / 0.5249 GB, free: 6.449 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.5872, allocations: 0 / 0.5249 GB, free: 6.449 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.988e-05/0.5873, allocations: 1.188 kB / 0.5249 GB, free: 6.449 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.01356/0.6009, allocations: 4.212 MB / 0.5291 GB, free: 5.285 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.96e-05/0.6009, allocations: 9.781 kB / 0.5291 GB, free: 5.285 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000656/0.6016, allocations: 450.9 kB / 0.5295 GB, free: 5.227 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009092/0.6025, allocations: 315.3 kB / 0.5298 GB, free: 5.059 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002401/0.6049, allocations: 1.078 MB / 0.5308 GB, free: 4.738 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002285/0.6051, allocations: 214.5 kB / 0.5311 GB, free: 4.73 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000682/0.6058, allocations: 290.2 kB / 0.5313 GB, free: 4.727 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009745/0.6156, allocations: 4.737 MB / 0.536 GB, free: 2.219 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001149/0.6157, allocations: 44.59 kB / 0.536 GB, free: 2.207 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005266/0.6162, allocations: 130.4 kB / 0.5361 GB, free: 2.125 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006615/0.6169, allocations: 433.2 kB / 0.5365 GB, free: 2.055 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008258/0.6251, allocations: 3.369 MB / 0.5398 GB, free: 1.023 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02839/0.6535, allocations: 21.5 MB / 0.5608 GB, free: 14.91 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004978/0.6585, allocations: 1.435 MB / 0.5622 GB, free: 14.27 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001192/0.6597, allocations: 0.6665 MB / 0.5629 GB, free: 13.94 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007893/0.6676, allocations: 3.583 MB / 0.5664 GB, free: 11.49 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.978e-05/0.6676, allocations: 46.38 kB / 0.5664 GB, free: 11.44 MB / 414.1 MB Notification: Performance of pre-optimization done (n=102): time 4.038e-06/0.6676, allocations: 0 / 0.5664 GB, free: 11.44 MB / 414.1 MB Notification: Performance of matching and sorting (n=140): time 0.02494/0.6926, allocations: 9.295 MB / 0.5755 GB, free: 2.176 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.819e-05/0.6926, allocations: 68.72 kB / 0.5756 GB, free: 2.098 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003164/0.6958, allocations: 1.815 MB / 0.5773 GB, free: 292 kB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001029/0.6959, allocations: 45.7 kB / 0.5774 GB, free: 240 kB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001635/0.6975, allocations: 1.809 MB / 0.5791 GB, free: 14.45 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005623/0.6981, allocations: 0.5588 MB / 0.5797 GB, free: 13.89 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001091/0.6992, allocations: 0.7469 MB / 0.5804 GB, free: 13.14 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0002896/0.6995, allocations: 361.9 kB / 0.5808 GB, free: 12.78 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002119/0.7016, allocations: 1.222 MB / 0.582 GB, free: 11.56 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004554/0.7061, allocations: 3.412 MB / 0.5853 GB, free: 7.105 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007769/0.7139, allocations: 5.115 MB / 0.5903 GB, free: 1.227 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.495e-05/0.7139, allocations: 24 kB / 0.5903 GB, free: 1.203 MB / 430.1 MB Notification: Performance of matching and sorting (n=485) (initialization): time 0.008688/0.7226, allocations: 4.815 MB / 0.595 GB, free: 12.85 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.71e-05/0.7227, allocations: 40 kB / 0.595 GB, free: 12.81 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.51e-05/0.7228, allocations: 76 kB / 0.5951 GB, free: 12.73 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009418/0.7237, allocations: 369.3 kB / 0.5955 GB, free: 12.37 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002916/0.7267, allocations: 0.891 MB / 0.5963 GB, free: 11.55 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00644/0.7331, allocations: 4.197 MB / 0.6004 GB, free: 7.297 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002664/0.7358, allocations: 211.8 kB / 0.6006 GB, free: 7.09 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002898/0.7361, allocations: 232 kB / 0.6009 GB, free: 6.863 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.002039/0.7381, allocations: 0.9289 MB / 0.6018 GB, free: 5.996 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004937/0.7386, allocations: 198.7 kB / 0.602 GB, free: 5.801 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004708/0.7433, allocations: 2.593 MB / 0.6045 GB, free: 3.203 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.425e-05/0.7433, allocations: 12.89 kB / 0.6045 GB, free: 3.191 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.885e-06/0.7433, allocations: 4 kB / 0.6045 GB, free: 3.188 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.786e-05/0.7433, allocations: 11.91 kB / 0.6045 GB, free: 3.176 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01284/0.7562, allocations: 6.383 MB / 0.6108 GB, free: 12.7 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.346e-06/0.7562, allocations: 1.453 kB / 0.6108 GB, free: 12.7 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001064/0.7572, allocations: 271.6 kB / 0.611 GB, free: 12.43 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007389/0.758, allocations: 264 kB / 0.6113 GB, free: 12.17 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001039/0.7581, allocations: 28.75 kB / 0.6113 GB, free: 12.14 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005036/0.7631, allocations: 3.362 MB / 0.6146 GB, free: 8.68 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.534e-06/0.7631, allocations: 12.5 kB / 0.6146 GB, free: 8.668 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00651/0.7696, allocations: 3.893 MB / 0.6184 GB, free: 4.707 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005482/0.7702, allocations: 178.7 kB / 0.6186 GB, free: 4.531 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005145/0.7707, allocations: 37.19 kB / 0.6186 GB, free: 4.496 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009789/0.7717, allocations: 99.84 kB / 0.6187 GB, free: 4.398 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002273/0.7719, allocations: 107.5 kB / 0.6188 GB, free: 4.297 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.851e-05/0.772, allocations: 36 kB / 0.6188 GB, free: 4.262 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002356/0.7744, allocations: 1.088 MB / 0.6199 GB, free: 3.184 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.7744, allocations: 0 / 0.6199 GB, free: 3.184 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003883/0.7782, allocations: 0.6328 MB / 0.6205 GB, free: 2.551 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.007038/0.7853, allocations: 4.494 MB / 0.6249 GB, free: 13.98 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.006365/0.7916, allocations: 3.206 MB / 0.628 GB, free: 10.77 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 6.883e-06/0.7916, allocations: 0 / 0.628 GB, free: 10.77 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001817/0.7935, allocations: 1.197 MB / 0.6292 GB, free: 9.562 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002185/0.7956, allocations: 456.2 kB / 0.6296 GB, free: 9.145 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04609/0.8417, allocations: 24.56 MB / 0.6536 GB, free: 13.59 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002647/0.8444, allocations: 1.827 MB / 0.6554 GB, free: 11.73 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.002304/0.8467, allocations: 0.8628 MB / 0.6562 GB, free: 10.87 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001725/0.8484, allocations: 1.054 MB / 0.6573 GB, free: 9.812 MB / 0.4981 GB Notification: Performance of SimCode: time 1.723e-06/0.8484, allocations: 0 / 0.6573 GB, free: 9.812 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1263/0.9747, allocations: 48.9 MB / 0.705 GB, free: 9.117 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.42/20.39, allocations: 7.094 kB / 0.705 GB, free: 9.113 MB / 0.545 GB " [Timeout remaining time 639] (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: 23.638018794124946] Failed to read output from testmodel.py, exit status != 0: 20.548418008023873 20.577793472 19.985220206 Calling exit ...