Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.SpringDemo.conf.json 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo", uses=false) Using package PlanarMechanics with version 1.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/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) 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) Running command: "" <> buildModelFMU(PlanarMechanics.Examples.SpringDemo,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_SpringDemo",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.SpringDemo,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_SpringDemo",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009962/0.0009963, allocations: 172.4 kB / 7.648 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.435/1.435, allocations: 221.5 MB / 229.6 MB, free: 7.586 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009402/0.0009402, allocations: 101.7 kB / 280.5 MB, free: 5.332 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.03705/0.03705, allocations: 8.823 MB / 340.1 MB, free: 6.422 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.284e-05/2.318e-05, allocations: 5.891 kB / 398.8 MB, free: 47.61 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1002/0.1002, allocations: 52.39 MB / 451.2 MB, free: 4.469 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3878/0.4881, allocations: 89.65 MB / 0.5281 GB, free: 28.78 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000287/0.4885, allocations: 76.58 kB / 0.5282 GB, free: 28.78 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1513/0.6398, allocations: 66.92 MB / 0.5936 GB, free: 8.453 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.763e-06/0.6398, allocations: 0 / 0.5936 GB, free: 8.453 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001022/0.6399, allocations: 56 kB / 0.5936 GB, free: 8.398 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1293 * Number of variables: 1293 Notification: Performance of Generate backend data structure: time 0.009454/0.6494, allocations: 2.998 MB / 0.5966 GB, free: 5.59 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.511e-05/0.6494, allocations: 16.02 kB / 0.5966 GB, free: 5.574 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01011/0.6595, allocations: 2.015 MB / 0.5985 GB, free: 3.555 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005562/0.6652, allocations: 1.822 MB / 0.6003 GB, free: 2.168 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001838/0.6654, allocations: 112 kB / 0.6004 GB, free: 2.059 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002193/0.6676, allocations: 195.9 kB / 0.6006 GB, free: 1.867 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01045/0.6781, allocations: 5.667 MB / 0.6061 GB, free: 14.25 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01878/0.6969, allocations: 7.53 MB / 0.6135 GB, free: 6.441 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001218/0.697, allocations: 23.8 kB / 0.6135 GB, free: 6.418 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004844/0.6975, allocations: 12 kB / 0.6135 GB, free: 6.406 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001626/0.6992, allocations: 0.959 MB / 0.6145 GB, free: 5.445 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04105/0.7402, allocations: 26.28 MB / 0.6401 GB, free: 10.5 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003025/0.7433, allocations: 1.929 MB / 0.642 GB, free: 8.457 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001313/0.7446, allocations: 0.8345 MB / 0.6428 GB, free: 7.621 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001157/0.7458, allocations: 1.314 MB / 0.6441 GB, free: 6.086 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.522e-05/0.7459, allocations: 47.88 kB / 0.6442 GB, free: 6.027 MB / 410.7 MB Notification: Performance of pre-optimization done (n=140): time 8.947e-06/0.7459, allocations: 0 / 0.6442 GB, free: 6.027 MB / 410.7 MB Notification: Performance of matching and sorting (n=160): time 0.01273/0.7586, allocations: 6.833 MB / 0.6508 GB, free: 15 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.863e-05/0.7587, allocations: 98.36 kB / 0.6509 GB, free: 14.89 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003082/0.7618, allocations: 2.043 MB / 0.6529 GB, free: 12.81 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001316/0.762, allocations: 25.7 kB / 0.6529 GB, free: 12.78 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001481/0.7635, allocations: 2.382 MB / 0.6553 GB, free: 10.36 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005436/0.764, allocations: 0.5703 MB / 0.6558 GB, free: 9.785 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000149/0.7642, allocations: 0 / 0.6558 GB, free: 9.785 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0003614/0.7645, allocations: 0.532 MB / 0.6563 GB, free: 9.242 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001947/0.7665, allocations: 1.293 MB / 0.6576 GB, free: 7.941 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003825/0.7703, allocations: 3.84 MB / 0.6614 GB, free: 2.816 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003421/0.7738, allocations: 2.237 MB / 0.6635 GB, free: 0.582 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.294e-05/0.7738, allocations: 24 kB / 0.6636 GB, free: 0.5586 MB / 426.7 MB Notification: Performance of matching and sorting (n=587) (initialization): time 0.00978/0.7836, allocations: 5.196 MB / 0.6686 GB, free: 11.27 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.529e-05/0.7838, allocations: 45 kB / 0.6687 GB, free: 11.23 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001301/0.7839, allocations: 92.16 kB / 0.6688 GB, free: 11.14 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007948/0.7847, allocations: 392.1 kB / 0.6691 GB, free: 10.74 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00367/0.7884, allocations: 0.9748 MB / 0.6701 GB, free: 9.762 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006879/0.7953, allocations: 8.108 MB / 0.678 GB, free: 1.07 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003726/0.7991, allocations: 127.9 kB / 0.6781 GB, free: 0.9453 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009225/0.8, allocations: 272 kB / 0.6784 GB, free: 0.6797 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 414 * Number of states: 0 () * Number of discrete variables: 30 (prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[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],spring1.color[3],spring1.color[2],spring1.color[1],spring1.colorConnector_b[3],spring1.colorConnector_b[2],spring1.colorConnector_b[1],spring1.colorConnector_a[3],spring1.colorConnector_a[2],spring1.colorConnector_a[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (538): * Single equations (assignments): 528 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 14,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007282/0.8008, allocations: 345.9 kB / 0.6787 GB, free: 344 kB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003297/0.8041, allocations: 2.127 MB / 0.6808 GB, free: 14.11 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003732/0.8045, allocations: 209.2 kB / 0.681 GB, free: 13.9 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00369/0.8082, allocations: 2.418 MB / 0.6834 GB, free: 11.37 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001515/0.8083, allocations: 39.97 kB / 0.6834 GB, free: 11.33 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.197e-06/0.8084, allocations: 4 kB / 0.6834 GB, free: 11.33 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.338e-05/0.8084, allocations: 3.984 kB / 0.6834 GB, free: 11.32 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009645/0.818, allocations: 5.579 MB / 0.6889 GB, free: 5.543 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.193e-05/0.8181, allocations: 4 kB / 0.6889 GB, free: 5.539 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008218/0.8189, allocations: 208.4 kB / 0.6891 GB, free: 5.336 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003403/0.8193, allocations: 146.5 kB / 0.6892 GB, free: 5.184 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.248e-05/0.8193, allocations: 12 kB / 0.6892 GB, free: 5.172 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003286/0.8226, allocations: 4.501 MB / 0.6936 GB, free: 328 kB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.055e-06/0.8227, allocations: 7.938 kB / 0.6936 GB, free: 320 kB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2729/1.096, allocations: 3.549 MB / 0.6971 GB, free: 118.2 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007414/1.096, allocations: 295.8 kB / 0.6974 GB, free: 118.2 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00024/1.097, allocations: 11.95 kB / 0.6974 GB, free: 118.2 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008457/1.098, allocations: 41.62 kB / 0.6974 GB, free: 118.2 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002258/1.098, allocations: 104.3 kB / 0.6975 GB, free: 118.2 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001008/1.098, allocations: 52.42 kB / 0.6976 GB, free: 118.2 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002358/1.1, allocations: 1.356 MB / 0.6989 GB, free: 118 MB / 458.7 MB Notification: Performance of sort global known variables: time 2.71e-07/1.1, allocations: 1.25 kB / 0.6989 GB, free: 118 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.004337/1.105, allocations: 0.6398 MB / 0.6995 GB, free: 118 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 2 (prismatic.s,prismatic.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (122): * Single equations (assignments): 114 * Array equations: 5 * 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: 3 {(1,100.0%) 6,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.006763/1.111, allocations: 5.826 MB / 0.7052 GB, free: 114.7 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.007552/1.119, allocations: 3.554 MB / 0.7087 GB, free: 114.2 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.059e-05/1.119, allocations: 3.656 kB / 0.7087 GB, free: 114.2 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001382/1.12, allocations: 1.126 MB / 0.7098 GB, free: 113.9 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001979/1.122, allocations: 232.5 kB / 0.71 GB, free: 113.9 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01398/1.136, allocations: 6.527 MB / 0.7164 GB, free: 112.5 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00268/1.139, allocations: 2.829 MB / 0.7191 GB, free: 111.7 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.0031/1.142, allocations: 1.26 MB / 0.7204 GB, free: 111.7 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002022/1.144, allocations: 1.447 MB / 0.7218 GB, free: 111.7 MB / 458.7 MB Notification: Performance of SimCode: time 1.132e-06/1.144, allocations: 3.438 kB / 0.7218 GB, free: 111.7 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08653/1.231, allocations: 48.99 MB / 0.7696 GB, free: 89.59 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000178/1.231, allocations: 128.1 kB / 0.7698 GB, free: 89.39 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.174/4.405, allocations: 0 / 0.7698 GB, free: 89.39 MB / 458.7 MB (rm -f PlanarMechanics_PlanarMechanics.Examples.SpringDemo.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.SpringDemo.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.SpringDemo.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.SpringDemo.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_Examples_SpringDemo_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_Examples_SpringDemo.fmu > PlanarMechanics_PlanarMechanics.Examples.SpringDemo.pipe 2>&1)