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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.003796/0.003796, allocations: 183 kB / 7.461 MB, free: 2.504 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.193/1.193, allocations: 221.4 MB / 229.3 MB, free: 3.023 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.001169/0.001169, allocations: 96.86 kB / 280.1 MB, free: 1.266 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.03843/0.03843, allocations: 8.84 MB / 339.7 MB, free: 5.715 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2082/0.2467, allocations: 58.49 MB / 398.2 MB, free: 67.34 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1145/0.3612, allocations: 52.39 MB / 450.6 MB, free: 15.01 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3021/0.6633, allocations: 89.92 MB / 0.5279 GB, free: 3.758 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001827/0.6636, allocations: 78.08 kB / 0.5279 GB, free: 3.723 MB / 346.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.1689/0.8324, allocations: 69.48 MB / 0.5958 GB, free: 4.961 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.667e-05/0.8325, allocations: 8 kB / 0.5958 GB, free: 4.953 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0109/0.8434, allocations: 1.68 MB / 0.5974 GB, free: 3.262 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00541/0.8489, allocations: 1.829 MB / 0.5992 GB, free: 1.387 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002445/0.8491, allocations: 108 kB / 0.5993 GB, free: 1.281 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001946/0.8511, allocations: 192 kB / 0.5995 GB, free: 1.094 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01183/0.863, allocations: 5.757 MB / 0.6051 GB, free: 11.33 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01879/0.8818, allocations: 7.623 MB / 0.6126 GB, free: 3.289 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002524/0.8821, allocations: 23.81 kB / 0.6126 GB, free: 3.266 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001836/0.884, allocations: 12 kB / 0.6126 GB, free: 3.254 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001747/0.8857, allocations: 1.002 MB / 0.6136 GB, free: 2.25 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04637/0.9321, allocations: 26.96 MB / 0.6399 GB, free: 6.48 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001832/0.934, allocations: 0.8476 MB / 0.6407 GB, free: 5.617 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001583/0.9356, allocations: 0.8291 MB / 0.6415 GB, free: 4.785 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001318/0.937, allocations: 1.306 MB / 0.6428 GB, free: 3.254 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.788e-05/0.9371, allocations: 47.56 kB / 0.6429 GB, free: 3.199 MB / 458.7 MB Notification: Performance of pre-optimization done (n=140): time 4.849e-06/0.9371, allocations: 0 / 0.6429 GB, free: 3.199 MB / 458.7 MB Notification: Performance of matching and sorting (n=160): time 0.194/1.131, allocations: 6.974 MB / 0.6497 GB, free: 91.91 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.08e-05/1.131, allocations: 93.52 kB / 0.6498 GB, free: 91.82 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002382/1.134, allocations: 2.082 MB / 0.6518 GB, free: 91.55 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 6.839e-05/1.134, allocations: 31.23 kB / 0.6518 GB, free: 91.52 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008183/1.134, allocations: 2.286 MB / 0.6541 GB, free: 90.31 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003186/1.135, allocations: 0.5777 MB / 0.6546 GB, free: 89.96 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000137/1.135, allocations: 0 / 0.6546 GB, free: 89.96 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002343/1.135, allocations: 0.5324 MB / 0.6551 GB, free: 89.64 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001593/1.137, allocations: 1.348 MB / 0.6565 GB, free: 89.62 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00252/1.139, allocations: 3.874 MB / 0.6602 GB, free: 86.33 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002628/1.142, allocations: 2.338 MB / 0.6625 GB, free: 86.32 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.396e-05/1.142, allocations: 25.78 kB / 0.6626 GB, free: 86.32 MB / 458.7 MB Notification: Performance of matching and sorting (n=587) (initialization): time 0.00715/1.149, allocations: 5.264 MB / 0.6677 GB, free: 85.59 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.139e-05/1.149, allocations: 3.75 kB / 0.6677 GB, free: 85.59 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.223e-05/1.149, allocations: 93 kB / 0.6678 GB, free: 85.59 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006672/1.15, allocations: 393.6 kB / 0.6682 GB, free: 85.54 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002864/1.153, allocations: 0.9672 MB / 0.6691 GB, free: 85.45 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004823/1.158, allocations: 8.021 MB / 0.6769 GB, free: 79.02 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003279/1.161, allocations: 113.4 kB / 0.677 GB, free: 79.02 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006913/1.162, allocations: 276.4 kB / 0.6773 GB, free: 79.02 MB / 458.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.0009341/1.163, allocations: 343.4 kB / 0.6776 GB, free: 78.77 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004473/1.163, allocations: 210.2 kB / 0.6778 GB, free: 78.65 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003264/1.166, allocations: 2.476 MB / 0.6803 GB, free: 78.1 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000144/1.166, allocations: 28.58 kB / 0.6803 GB, free: 78.1 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.316e-06/1.166, allocations: 3.469 kB / 0.6803 GB, free: 78.1 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.233e-05/1.167, allocations: 6.703 kB / 0.6803 GB, free: 78.1 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008094/1.175, allocations: 5.527 MB / 0.6857 GB, free: 77.05 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.267e-06/1.175, allocations: 9.844 kB / 0.6857 GB, free: 77.05 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008096/1.175, allocations: 206.8 kB / 0.6859 GB, free: 77.03 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003188/1.176, allocations: 145.7 kB / 0.686 GB, free: 77 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.48e-05/1.176, allocations: 16.81 kB / 0.6861 GB, free: 77 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002453/1.178, allocations: 4.454 MB / 0.6904 GB, free: 73.18 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.963e-06/1.178, allocations: 20.5 kB / 0.6904 GB, free: 73.17 MB / 458.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003345/1.182, allocations: 3.658 MB / 0.694 GB, free: 71.79 MB / 458.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004254/1.186, allocations: 5.057 MB / 0.6989 GB, free: 70.02 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004747/1.186, allocations: 291.1 kB / 0.6992 GB, free: 69.82 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002766/1.187, allocations: 11.12 kB / 0.6992 GB, free: 69.82 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008134/1.188, allocations: 30.89 kB / 0.6993 GB, free: 69.82 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001232/1.188, allocations: 83.64 kB / 0.6993 GB, free: 69.8 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.91e-05/1.188, allocations: 56.64 kB / 0.6994 GB, free: 69.8 MB / 458.7 MB Notification: Performance of sort global known variables: time 0.001696/1.19, allocations: 1.391 MB / 0.7007 GB, free: 69.66 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.003944/1.193, allocations: 0.6469 MB / 0.7014 GB, free: 69.65 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.0003126/1.194, allocations: 158.1 kB / 0.7015 GB, free: 69.54 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.00451/1.198, allocations: 3.622 MB / 0.7051 GB, free: 68.79 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 4.608e-06/1.198, allocations: 3.906 kB / 0.7051 GB, free: 68.79 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001405/1.2, allocations: 1.164 MB / 0.7062 GB, free: 68.37 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009672/1.201, allocations: 221 kB / 0.7064 GB, free: 68.28 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008906/1.21, allocations: 5.638 MB / 0.7119 GB, free: 66.07 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003068/1.213, allocations: 3.039 MB / 0.7149 GB, free: 64.83 MB / 458.7 MB Notification: Performance of SimCode: time 1.001e-06/1.213, allocations: 3.938 kB / 0.7149 GB, free: 64.83 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)