Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.PistonEngine.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.PistonEngine,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_PistonEngine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.PistonEngine,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_PistonEngine",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.0007712/0.0007713, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.0007901/0.0007901, allocations: 168.7 kB / 15.95 MB, free: 204 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.303/1.303, allocations: 223.2 MB / 240 MB, free: 5.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1-master/package.mo): time 0.1566/0.1566, allocations: 9.114 MB / 300.2 MB, free: 2.707 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003118/0.0003119, allocations: 8 kB / 363.2 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1099/0.1102, allocations: 52.43 MB / 415.6 MB, free: 8.449 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PistonEngine): time 0.2174/0.3277, allocations: 35.94 MB / 451.6 MB, free: 22.4 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01609/0.3439, allocations: 8.076 MB / 459.6 MB, free: 16.76 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006893/0.3508, allocations: 149.4 kB / 459.8 MB, free: 16.75 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005106/0.3559, allocations: 1.772 MB / 461.6 MB, free: 16.12 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01775/0.3737, allocations: 6.207 MB / 467.8 MB, free: 13.38 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001824/0.3755, allocations: 169.2 kB / 467.9 MB, free: 13.28 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003681/0.3793, allocations: 3.149 MB / 471.1 MB, free: 12.05 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00172/0.381, allocations: 0.9552 MB / 472 MB, free: 11.7 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001619/0.3826, allocations: 0.9039 MB / 472.9 MB, free: 11.38 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002368/0.385, allocations: 1.445 MB / 474.4 MB, free: 10.89 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001064/0.3861, allocations: 147.7 kB / 474.5 MB, free: 10.89 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002325/0.3885, allocations: 0.6811 MB / 475.2 MB, free: 10.75 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001737/0.3902, allocations: 1.226 MB / 476.4 MB, free: 10.33 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001436/0.3917, allocations: 0.7128 MB / 477.1 MB, free: 9.812 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005595/0.3973, allocations: 4.001 MB / 481.2 MB, free: 8.887 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.3973, allocations: 3.938 kB / 481.2 MB, free: 8.883 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.214e-06/0.3973, allocations: 0 / 481.2 MB, free: 8.883 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002436/0.3976, allocations: 1.219 kB / 481.2 MB, free: 8.883 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: 1302 * Number of variables: 1302 Notification: Performance of Generate backend data structure: time 0.01342/0.411, allocations: 4.479 MB / 485.6 MB, free: 7.039 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.495e-05/0.411, allocations: 13.59 kB / 485.6 MB, free: 7.035 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001868/0.4129, allocations: 0.6041 MB / 486.3 MB, free: 6.73 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007131/0.4201, allocations: 1.856 MB / 488.1 MB, free: 5.887 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003666/0.4238, allocations: 1.482 MB / 489.6 MB, free: 4.828 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002903/0.4241, allocations: 170.6 kB / 489.8 MB, free: 4.746 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001225/0.4253, allocations: 235.8 kB / 490 MB, free: 4.656 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01634/0.4417, allocations: 8.935 MB / 498.9 MB, free: 15.43 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001614/0.4419, allocations: 35.55 kB / 499 MB, free: 15.4 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008145/0.4427, allocations: 106.6 kB / 499.1 MB, free: 15.33 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003465/0.4462, allocations: 2.013 MB / 0.4893 GB, free: 13.96 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01674/0.4629, allocations: 7.928 MB / 0.4971 GB, free: 6.023 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04171/0.5047, allocations: 28.56 MB / 0.525 GB, free: 8.859 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007187/0.5119, allocations: 2.809 MB / 0.5277 GB, free: 5.949 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001686/0.5136, allocations: 0.9782 MB / 0.5287 GB, free: 4.969 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009371/0.523, allocations: 6.465 MB / 0.535 GB, free: 13.87 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.323e-05/0.5231, allocations: 43.88 kB / 0.535 GB, free: 13.82 MB / 414.1 MB Notification: Performance of pre-optimization done (n=155): time 3.978e-06/0.5231, allocations: 0 / 0.535 GB, free: 13.82 MB / 414.1 MB Notification: Performance of matching and sorting (n=193): time 0.01601/0.5391, allocations: 6.474 MB / 0.5413 GB, free: 7.324 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.587e-05/0.5392, allocations: 77.41 kB / 0.5414 GB, free: 7.234 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005917/0.5451, allocations: 3.015 MB / 0.5444 GB, free: 4.207 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002277/0.5454, allocations: 49.7 kB / 0.5444 GB, free: 4.152 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001782/0.5472, allocations: 2.354 MB / 0.5467 GB, free: 1.766 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009305/0.5481, allocations: 0.7093 MB / 0.5474 GB, free: 1.047 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000438/0.5485, allocations: 88 kB / 0.5475 GB, free: 0.9609 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0004552/0.549, allocations: 0.5005 MB / 0.548 GB, free: 464 kB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00289/0.5519, allocations: 1.485 MB / 0.5494 GB, free: 14.96 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004566/0.5565, allocations: 4.066 MB / 0.5534 GB, free: 9.617 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003991/0.5605, allocations: 2.452 MB / 0.5558 GB, free: 7.168 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.671e-05/0.5606, allocations: 27.94 kB / 0.5558 GB, free: 7.141 MB / 430.1 MB Notification: Performance of matching and sorting (n=615) (initialization): time 0.01063/0.5712, allocations: 5.93 MB / 0.5616 GB, free: 1.195 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.79e-05/0.5713, allocations: 44 kB / 0.5616 GB, free: 1.152 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001442/0.5715, allocations: 88 kB / 0.5617 GB, free: 1.066 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001608/0.5731, allocations: 0.636 MB / 0.5623 GB, free: 432 kB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003117/0.5763, allocations: 0.9943 MB / 0.5633 GB, free: 15.43 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009747/0.586, allocations: 8.478 MB / 0.5716 GB, free: 6.539 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003741/0.5898, allocations: 239.8 kB / 0.5718 GB, free: 6.305 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007877/0.5906, allocations: 280 kB / 0.5721 GB, free: 6.031 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 410 * Number of states: 0 () * Number of discrete variables: 24 (revolutePiston.cylinderColor[3],revolutePiston.cylinderColor[2],revolutePiston.cylinderColor[1],bodyPiston.sphereColor[3],bodyPiston.sphereColor[2],bodyPiston.sphereColor[1],pistonRod.color[3],pistonRod.color[2],pistonRod.color[1],revoluteDisc.cylinderColor[3],revoluteDisc.cylinderColor[2],revoluteDisc.cylinderColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],fixedTranslationDisc.color[3],fixedTranslationDisc.color[2],fixedTranslationDisc.color[1],revoluteDrive.cylinderColor[3],revoluteDrive.cylinderColor[2],revoluteDrive.cylinderColor[1],bodyDrive.sphereColor[3],bodyDrive.sphereColor[2],bodyDrive.sphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (548): * Single equations (assignments): 541 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(3,88.9%) 21,(1,100.0%) 9} * Non-linear torn systems: 1 {1 9} Notification: Performance of prepare postOptimizeDAE: time 0.003615/0.5942, allocations: 1.728 MB / 0.5738 GB, free: 4.289 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004935/0.5947, allocations: 264.7 kB / 0.574 GB, free: 4.027 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00455/0.5993, allocations: 2.645 MB / 0.5766 GB, free: 1.359 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.691e-05/0.5994, allocations: 31.97 kB / 0.5766 GB, free: 1.328 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.748e-05/0.5994, allocations: 4 kB / 0.5766 GB, free: 1.324 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.629e-05/0.5994, allocations: 7.969 kB / 0.5767 GB, free: 1.316 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2226/0.822, allocations: 7.303 MB / 0.5838 GB, free: 120.3 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.277e-05/0.8221, allocations: 6.656 kB / 0.5838 GB, free: 120.3 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008737/0.823, allocations: 244.1 kB / 0.584 GB, free: 120.3 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001283/0.8243, allocations: 487.6 kB / 0.5845 GB, free: 120.2 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001218/0.8244, allocations: 37.09 kB / 0.5845 GB, free: 120.2 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006432/0.8308, allocations: 7.266 MB / 0.5916 GB, free: 116.3 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.561e-06/0.8309, allocations: 12.89 kB / 0.5916 GB, free: 116.3 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005357/0.8362, allocations: 3.976 MB / 0.5955 GB, free: 114.9 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008556/0.8371, allocations: 355.9 kB / 0.5959 GB, free: 114.8 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002673/0.8374, allocations: 35.77 kB / 0.5959 GB, free: 114.7 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008209/0.8382, allocations: 78.22 kB / 0.596 GB, free: 114.7 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002404/0.8385, allocations: 129.3 kB / 0.5961 GB, free: 114.7 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001038/0.8386, allocations: 55.03 kB / 0.5961 GB, free: 114.7 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002795/0.8414, allocations: 1.928 MB / 0.598 GB, free: 114 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.8414, allocations: 0 / 0.598 GB, free: 114 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003586/0.845, allocations: 0.8311 MB / 0.5988 GB, free: 113.9 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 2 (revoluteDrive.phi,revoluteDrive.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 (135): * Single equations (assignments): 128 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(3,88.9%) 17,(1,100.0%) 7} * Non-linear torn systems: 1 {1 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.005028/0.85, allocations: 4.637 MB / 0.6034 GB, free: 111.8 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005798/0.8558, allocations: 4.048 MB / 0.6073 GB, free: 110.2 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.873e-06/0.8559, allocations: 0 / 0.6073 GB, free: 110.2 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001864/0.8577, allocations: 1.541 MB / 0.6088 GB, free: 109.4 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002341/0.8601, allocations: 416.1 kB / 0.6092 GB, free: 109.3 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04444/0.9045, allocations: 24.62 MB / 0.6333 GB, free: 93.54 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002556/0.9071, allocations: 2.806 MB / 0.636 GB, free: 92.31 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003242/0.9104, allocations: 1.341 MB / 0.6373 GB, free: 92.2 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001765/0.9122, allocations: 1.488 MB / 0.6388 GB, free: 91 MB / 446.1 MB Notification: Performance of SimCode: time 1.032e-06/0.9122, allocations: 0 / 0.6388 GB, free: 91 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08385/0.996, allocations: 62.46 MB / 0.6998 GB, free: 33.86 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001417/0.9962, allocations: 200.7 kB / 0.7 GB, free: 33.62 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.883/3.88, allocations: 0 / 0.7 GB, free: 33.62 MB / 446.1 MB (rm -f PlanarMechanics_PlanarMechanics.Examples.PistonEngine.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.PistonEngine.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.PistonEngine.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.PistonEngine.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_Examples_PistonEngine_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_Examples_PistonEngine.fmu > PlanarMechanics_PlanarMechanics.Examples.PistonEngine.pipe 2>&1) Environment - environmentSimulation: