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/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.6.0/package.mo", uses=false) 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.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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007235/0.007235, allocations: 107 kB / 15.74 MB, free: 6.449 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.001726/0.001726, allocations: 197 kB / 16.67 MB, free: 6.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.291/1.291, allocations: 222.9 MB / 240.4 MB, free: 4.27 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1474/0.1474, allocations: 9.104 MB / 299.6 MB, free: 1.742 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001381/0.001381, allocations: 67.89 kB / 414.1 MB, free: 8.836 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2479/0.2493, allocations: 51.43 MB / 465.6 MB, free: 17.88 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.SpringDemo): time 0.007889/0.2572, allocations: 9.528 MB / 475.1 MB, free: 11.1 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005882/0.2631, allocations: 2.747 MB / 477.8 MB, free: 9.227 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001002/0.2641, allocations: 37.38 kB / 477.9 MB, free: 9.223 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009137/0.265, allocations: 398.4 kB / 478.3 MB, free: 9.035 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002832/0.268, allocations: 1.422 MB / 479.7 MB, free: 8.074 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004499/0.2684, allocations: 168.7 kB / 479.9 MB, free: 7.941 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002657/0.2711, allocations: 2.725 MB / 482.6 MB, free: 6.367 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009057/0.272, allocations: 0.9473 MB / 483.5 MB, free: 5.715 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000989/0.273, allocations: 0.9737 MB / 484.5 MB, free: 5.141 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001439/0.2745, allocations: 1.396 MB / 485.9 MB, free: 4.277 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003981/0.2749, allocations: 247.7 kB / 486.1 MB, free: 4.277 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00141/0.2763, allocations: 0.8454 MB / 487 MB, free: 3.938 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009839/0.2773, allocations: 1.33 MB / 488.3 MB, free: 3.16 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001157/0.2784, allocations: 1.723 MB / 490 MB, free: 1.809 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004999/0.2835, allocations: 5.373 MB / 495.4 MB, free: 14.11 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.2835, allocations: 1.406 kB / 495.4 MB, free: 14.11 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.2835, allocations: 0 / 495.4 MB, free: 14.11 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001214/0.2836, allocations: 0 / 495.4 MB, free: 14.11 MB / 366.1 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.007081/0.2907, allocations: 3.615 MB / 499 MB, free: 10.61 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.065e-05/0.2908, allocations: 12.03 kB / 499 MB, free: 10.6 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008347/0.2916, allocations: 0.593 MB / 499.6 MB, free: 9.996 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006509/0.2981, allocations: 1.841 MB / 0.4897 GB, free: 8.148 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002561/0.3007, allocations: 1.429 MB / 0.4911 GB, free: 6.672 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001133/0.3008, allocations: 168.4 kB / 0.4913 GB, free: 6.504 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003818/0.3012, allocations: 215.9 kB / 0.4915 GB, free: 6.293 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01244/0.3137, allocations: 8.67 MB / 0.4999 GB, free: 13.19 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.772e-05/0.3138, allocations: 23.81 kB / 0.5 GB, free: 13.17 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002856/0.314, allocations: 107.8 kB / 0.5001 GB, free: 13.06 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003133/0.3172, allocations: 2.079 MB / 0.5021 GB, free: 10.98 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01435/0.3316, allocations: 7.51 MB / 0.5094 GB, free: 3.457 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04121/0.3728, allocations: 26.96 MB / 0.5358 GB, free: 7.914 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0051/0.378, allocations: 2.183 MB / 0.5379 GB, free: 5.602 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001818/0.3798, allocations: 0.9471 MB / 0.5388 GB, free: 4.652 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009461/0.3893, allocations: 5.559 MB / 0.5443 GB, free: 14.69 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.228e-05/0.3894, allocations: 43.55 kB / 0.5443 GB, free: 14.64 MB / 430.1 MB Notification: Performance of pre-optimization done (n=119): time 3.326e-06/0.3894, allocations: 4 kB / 0.5443 GB, free: 14.64 MB / 430.1 MB Notification: Performance of matching and sorting (n=135): time 0.01408/0.4035, allocations: 6.986 MB / 0.5511 GB, free: 7.469 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.363e-05/0.4036, allocations: 64.41 kB / 0.5512 GB, free: 7.395 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005442/0.409, allocations: 2.936 MB / 0.5541 GB, free: 4.441 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001443/0.4092, allocations: 41.7 kB / 0.5541 GB, free: 4.395 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002262/0.4114, allocations: 2.352 MB / 0.5564 GB, free: 2.008 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006872/0.4122, allocations: 0.5128 MB / 0.5569 GB, free: 1.488 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001737/0.4139, allocations: 0.8569 MB / 0.5577 GB, free: 0.6172 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 9.495e-05/0.414, allocations: 305.1 kB / 0.558 GB, free: 324 kB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00265/0.4167, allocations: 1.347 MB / 0.5593 GB, free: 14.96 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003911/0.4206, allocations: 3.799 MB / 0.563 GB, free: 9.934 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006294/0.4269, allocations: 5.496 MB / 0.5684 GB, free: 3.23 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.079e-05/0.427, allocations: 24 kB / 0.5684 GB, free: 3.207 MB / 446.1 MB Notification: Performance of matching and sorting (n=552) (initialization): time 0.009969/0.437, allocations: 5.619 MB / 0.5739 GB, free: 13.49 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000103/0.4371, allocations: 47.94 kB / 0.574 GB, free: 13.44 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001498/0.4373, allocations: 92 kB / 0.5741 GB, free: 13.35 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008947/0.4382, allocations: 379.3 kB / 0.5744 GB, free: 12.97 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002942/0.4412, allocations: 0.924 MB / 0.5753 GB, free: 12.04 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007284/0.4485, allocations: 9.069 MB / 0.5842 GB, free: 2.277 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003636/0.4521, allocations: 223.9 kB / 0.5844 GB, free: 2.059 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006764/0.4528, allocations: 252 kB / 0.5846 GB, free: 1.812 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 392 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (505): * Single equations (assignments): 495 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(2,11,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003561/0.4564, allocations: 1.71 MB / 0.5863 GB, free: 92 kB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.224/0.6804, allocations: 238.5 kB / 0.5865 GB, free: 110.8 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003971/0.6844, allocations: 2.242 MB / 0.5887 GB, free: 110.2 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001901/0.6847, allocations: 38.45 kB / 0.5888 GB, free: 110.2 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.658e-06/0.6847, allocations: 5.188 kB / 0.5888 GB, free: 110.2 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.546e-05/0.6847, allocations: 9.188 kB / 0.5888 GB, free: 110.2 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01005/0.6948, allocations: 5.769 MB / 0.5944 GB, free: 108 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-05/0.6948, allocations: 3.688 kB / 0.5944 GB, free: 108 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007246/0.6955, allocations: 175.3 kB / 0.5946 GB, free: 108 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000481/0.696, allocations: 167.7 kB / 0.5947 GB, free: 107.9 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.467e-05/0.6961, allocations: 29.62 kB / 0.5948 GB, free: 107.9 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003292/0.6994, allocations: 5.187 MB / 0.5998 GB, free: 103.1 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.099e-06/0.6994, allocations: 13.55 kB / 0.5998 GB, free: 103.1 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004145/0.7036, allocations: 3.006 MB / 0.6028 GB, free: 101.8 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007028/0.7043, allocations: 318.8 kB / 0.6031 GB, free: 101.6 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002789/0.7046, allocations: 24.77 kB / 0.6031 GB, free: 101.6 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007753/0.7054, allocations: 60.8 kB / 0.6032 GB, free: 101.6 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001588/0.7055, allocations: 80.53 kB / 0.6032 GB, free: 101.6 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.324e-05/0.7056, allocations: 48.14 kB / 0.6033 GB, free: 101.6 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003112/0.7088, allocations: 1.876 MB / 0.6051 GB, free: 100.9 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.7088, allocations: 0 / 0.6051 GB, free: 100.9 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003885/0.7127, allocations: 0.7173 MB / 0.6058 GB, free: 100.8 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 2 (prismatic.s,prismatic.v) * 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 (103): * Single equations (assignments): 95 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,6,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.004229/0.7169, allocations: 3.652 MB / 0.6094 GB, free: 98.96 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005649/0.7226, allocations: 3.704 MB / 0.613 GB, free: 97.38 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 8.296e-06/0.7226, allocations: 0 / 0.613 GB, free: 97.38 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001547/0.7242, allocations: 1.143 MB / 0.6141 GB, free: 96.79 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002188/0.7264, allocations: 414.1 kB / 0.6145 GB, free: 96.62 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03859/0.765, allocations: 30.46 MB / 0.6443 GB, free: 69.83 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002879/0.7679, allocations: 2.753 MB / 0.6469 GB, free: 67.05 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002397/0.7703, allocations: 1.206 MB / 0.6481 GB, free: 65.84 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00161/0.772, allocations: 1.437 MB / 0.6495 GB, free: 64.4 MB / 462.1 MB Notification: Performance of SimCode: time 1.012e-06/0.772, allocations: 0 / 0.6495 GB, free: 64.4 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07881/0.8508, allocations: 47.51 MB / 0.6959 GB, free: 17.16 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.76/18.61, allocations: 7.984 kB / 0.6959 GB, free: 17.15 MB / 462.1 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/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)