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.00155/0.00155, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001749/0.001748, allocations: 191.8 kB / 16.53 MB, free: 6.664 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.4/1.4, allocations: 222.9 MB / 240.2 MB, free: 4.371 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1583/0.1583, allocations: 9.11 MB / 299.5 MB, free: 1.797 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001683/0.001683, allocations: 59.91 kB / 362 MB, free: 12.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1036/0.1053, allocations: 51.44 MB / 413.5 MB, free: 9.426 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.SpringDemo): time 0.2158/0.3212, allocations: 9.538 MB / 423 MB, free: 35.95 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006939/0.3281, allocations: 2.734 MB / 425.8 MB, free: 35.92 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001747/0.3299, allocations: 41.47 kB / 425.8 MB, free: 35.92 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001411/0.3314, allocations: 394.1 kB / 426.2 MB, free: 35.91 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004918/0.3364, allocations: 1.426 MB / 427.6 MB, free: 35.67 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009723/0.3374, allocations: 162.7 kB / 427.8 MB, free: 35.65 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004049/0.3414, allocations: 2.71 MB / 430.5 MB, free: 35.2 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001906/0.3434, allocations: 0.9512 MB / 431.4 MB, free: 35.09 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001989/0.3454, allocations: 0.9798 MB / 432.4 MB, free: 34.87 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002923/0.3483, allocations: 1.397 MB / 433.8 MB, free: 34.37 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001324/0.3497, allocations: 247.4 kB / 434 MB, free: 34.37 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002815/0.3525, allocations: 0.8456 MB / 434.9 MB, free: 34.21 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001735/0.3543, allocations: 1.334 MB / 436.2 MB, free: 33.7 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002359/0.3566, allocations: 1.71 MB / 437.9 MB, free: 32.45 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005567/0.3622, allocations: 5.108 MB / 443 MB, free: 30.55 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.681e-06/0.3623, allocations: 3.938 kB / 443 MB, free: 30.55 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.3623, allocations: 0 / 443 MB, free: 30.55 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001455/0.3624, allocations: 0 / 443 MB, free: 30.55 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: 1293 * Number of variables: 1293 Notification: Performance of Generate backend data structure: time 0.007452/0.3699, allocations: 3.61 MB / 446.7 MB, free: 28.47 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.123e-05/0.3699, allocations: 9.5 kB / 446.7 MB, free: 28.47 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007236/0.3707, allocations: 0.5919 MB / 447.3 MB, free: 28.21 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006453/0.3771, allocations: 1.839 MB / 449.1 MB, free: 27.9 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002388/0.3795, allocations: 1.428 MB / 450.5 MB, free: 27.01 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.114e-05/0.3796, allocations: 161.3 kB / 450.7 MB, free: 26.96 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004044/0.38, allocations: 221.1 kB / 450.9 MB, free: 26.92 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01253/0.3926, allocations: 8.674 MB / 459.6 MB, free: 23.13 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.47e-05/0.3927, allocations: 21.72 kB / 459.6 MB, free: 23.12 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003481/0.3931, allocations: 101.9 kB / 459.7 MB, free: 23.08 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003447/0.3965, allocations: 2.092 MB / 461.8 MB, free: 22.67 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01642/0.413, allocations: 7.502 MB / 469.3 MB, free: 20.12 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03998/0.453, allocations: 27.08 MB / 496.4 MB, free: 15.34 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00482/0.4578, allocations: 2.176 MB / 498.5 MB, free: 13.04 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001666/0.4595, allocations: 0.9456 MB / 499.5 MB, free: 12.1 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009601/0.4692, allocations: 5.568 MB / 0.4932 GB, free: 6.172 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.861e-05/0.4692, allocations: 47.55 kB / 0.4933 GB, free: 6.113 MB / 366.1 MB Notification: Performance of pre-optimization done (n=119): time 3.226e-06/0.4692, allocations: 0 / 0.4933 GB, free: 6.113 MB / 366.1 MB Notification: Performance of matching and sorting (n=135): time 0.01439/0.4836, allocations: 6.988 MB / 0.5001 GB, free: 14.96 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.22e-05/0.4837, allocations: 64.41 kB / 0.5001 GB, free: 14.88 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00495/0.4886, allocations: 2.939 MB / 0.503 GB, free: 11.93 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001031/0.4888, allocations: 49.7 kB / 0.5031 GB, free: 11.87 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001843/0.4906, allocations: 2.352 MB / 0.5054 GB, free: 9.516 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000587/0.4912, allocations: 0.5142 MB / 0.5059 GB, free: 9.008 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001395/0.4926, allocations: 0.8452 MB / 0.5067 GB, free: 8.148 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001031/0.4927, allocations: 309.1 kB / 0.507 GB, free: 7.844 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002411/0.4951, allocations: 1.347 MB / 0.5083 GB, free: 6.484 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00405/0.4992, allocations: 3.799 MB / 0.512 GB, free: 1.457 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006675/0.5059, allocations: 5.49 MB / 0.5174 GB, free: 10.76 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.432e-05/0.506, allocations: 25.12 kB / 0.5174 GB, free: 10.74 MB / 398.1 MB Notification: Performance of matching and sorting (n=552) (initialization): time 0.009743/0.5157, allocations: 5.622 MB / 0.5229 GB, free: 5.027 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.853e-05/0.5158, allocations: 43.94 kB / 0.5229 GB, free: 4.984 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001366/0.516, allocations: 88 kB / 0.523 GB, free: 4.898 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008484/0.5168, allocations: 376.5 kB / 0.5234 GB, free: 4.516 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003059/0.5199, allocations: 0.924 MB / 0.5243 GB, free: 3.59 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008206/0.5281, allocations: 9.082 MB / 0.5331 GB, free: 9.824 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004289/0.5325, allocations: 227.8 kB / 0.5334 GB, free: 9.602 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001004/0.5335, allocations: 257.9 kB / 0.5336 GB, free: 9.352 MB / 414.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.003929/0.5374, allocations: 1.699 MB / 0.5353 GB, free: 7.641 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007796/0.5382, allocations: 240.8 kB / 0.5355 GB, free: 7.402 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004789/0.543, allocations: 2.249 MB / 0.5377 GB, free: 5.055 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001925/0.5432, allocations: 35.97 kB / 0.5377 GB, free: 5.02 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.491e-05/0.5433, allocations: 4 kB / 0.5377 GB, free: 5.016 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.707e-05/0.5433, allocations: 7.969 kB / 0.5377 GB, free: 5.008 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01263/0.5559, allocations: 5.801 MB / 0.5434 GB, free: 15.08 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.228e-05/0.556, allocations: 4 kB / 0.5434 GB, free: 15.08 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007367/0.5567, allocations: 175.7 kB / 0.5436 GB, free: 14.91 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000491/0.5572, allocations: 166.8 kB / 0.5437 GB, free: 14.73 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.075e-05/0.5573, allocations: 23.98 kB / 0.5438 GB, free: 14.71 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00488/0.5622, allocations: 5.204 MB / 0.5488 GB, free: 9.102 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.123e-06/0.5622, allocations: 4 kB / 0.5488 GB, free: 9.098 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004669/0.5669, allocations: 3.004 MB / 0.5518 GB, free: 5.984 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009359/0.5679, allocations: 314.1 kB / 0.5521 GB, free: 5.656 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006233/0.5685, allocations: 24 kB / 0.5521 GB, free: 5.633 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001199/0.5697, allocations: 62.58 kB / 0.5522 GB, free: 5.574 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001722/0.5699, allocations: 84.84 kB / 0.5522 GB, free: 5.492 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.115e-05/0.57, allocations: 40 kB / 0.5523 GB, free: 5.453 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.00357/0.5736, allocations: 1.878 MB / 0.5541 GB, free: 3.566 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.5736, allocations: 0 / 0.5541 GB, free: 3.566 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.004087/0.5777, allocations: 0.7213 MB / 0.5548 GB, free: 2.848 MB / 430.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.004939/0.5826, allocations: 3.658 MB / 0.5584 GB, free: 15.08 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007825/0.5905, allocations: 4.572 MB / 0.5629 GB, free: 10.47 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.262e-06/0.5905, allocations: 0 / 0.5629 GB, free: 10.47 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001715/0.5922, allocations: 1.136 MB / 0.564 GB, free: 9.293 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002525/0.5948, allocations: 410.6 kB / 0.5644 GB, free: 8.914 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2498/0.8445, allocations: 33.14 MB / 0.5967 GB, free: 129 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003187/0.8478, allocations: 2.751 MB / 0.5994 GB, free: 128.2 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002946/0.8508, allocations: 1.209 MB / 0.6006 GB, free: 128.2 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001647/0.8524, allocations: 1.439 MB / 0.602 GB, free: 127.6 MB / 462.1 MB Notification: Performance of SimCode: time 1.382e-06/0.8525, allocations: 4.156 kB / 0.602 GB, free: 127.6 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09695/0.9494, allocations: 49.66 MB / 0.6505 GB, free: 107.6 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.52/11.47, allocations: 11.81 kB / 0.6505 GB, free: 107.6 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)