Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo.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.SpringDamperDemo,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_SpringDamperDemo",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.SpringDamperDemo,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_SpringDamperDemo",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.001508/0.001508, allocations: 108 kB / 15.6 MB, free: 132 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.001514/0.001514, allocations: 197.4 kB / 16.54 MB, free: 6.672 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.397/1.397, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1839/0.1839, allocations: 9.108 MB / 299.5 MB, free: 1.785 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001452/0.001452, allocations: 67.91 kB / 362 MB, free: 12.92 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1056/0.1071, allocations: 51.43 MB / 413.5 MB, free: 9.449 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.SpringDamperDemo): time 0.009681/0.1168, allocations: 8.189 MB / 421.7 MB, free: 1.215 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.2451/0.362, allocations: 2.503 MB / 424.2 MB, free: 36.31 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001853/0.3639, allocations: 32.09 kB / 424.2 MB, free: 36.31 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001685/0.3656, allocations: 354.6 kB / 424.5 MB, free: 36.31 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005224/0.3709, allocations: 1.331 MB / 425.9 MB, free: 36.27 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000764/0.3717, allocations: 113.3 kB / 426 MB, free: 36.26 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004257/0.376, allocations: 2.435 MB / 428.4 MB, free: 35.98 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001826/0.3778, allocations: 0.8101 MB / 429.2 MB, free: 35.88 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001734/0.3796, allocations: 0.8533 MB / 430.1 MB, free: 35.71 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002186/0.3818, allocations: 1.262 MB / 431.3 MB, free: 35.49 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009763/0.3828, allocations: 224 kB / 431.6 MB, free: 35.49 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002206/0.385, allocations: 0.811 MB / 432.4 MB, free: 35.41 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001543/0.3866, allocations: 1.205 MB / 433.6 MB, free: 34.95 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00284/0.3894, allocations: 1.539 MB / 435.1 MB, free: 33.82 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006433/0.3959, allocations: 4.71 MB / 439.8 MB, free: 32.08 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.452e-06/0.3959, allocations: 0 / 439.8 MB, free: 32.08 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.294e-06/0.3959, allocations: 3.938 kB / 439.8 MB, free: 32.07 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.365e-05/0.396, allocations: 0 / 439.8 MB, free: 32.07 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: 1172 * Number of variables: 1172 Notification: Performance of Generate backend data structure: time 0.00654/0.4026, allocations: 3.257 MB / 443.1 MB, free: 30.18 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.913e-05/0.4026, allocations: 9.625 kB / 443.1 MB, free: 30.18 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006831/0.4033, allocations: 0.5378 MB / 443.6 MB, free: 29.94 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006228/0.4096, allocations: 1.765 MB / 445.4 MB, free: 29.65 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002077/0.4117, allocations: 1.294 MB / 446.7 MB, free: 28.83 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.682e-05/0.4118, allocations: 148.8 kB / 446.8 MB, free: 28.79 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003388/0.4121, allocations: 182.4 kB / 447 MB, free: 28.77 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01127/0.4234, allocations: 8.063 MB / 455.1 MB, free: 25.3 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.813e-05/0.4235, allocations: 21.91 kB / 455.1 MB, free: 25.29 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004361/0.424, allocations: 89.27 kB / 455.2 MB, free: 25.26 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003215/0.4272, allocations: 2.008 MB / 457.2 MB, free: 24.86 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01378/0.441, allocations: 7.136 MB / 464.3 MB, free: 22.43 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04091/0.4819, allocations: 24.15 MB / 488.5 MB, free: 6.434 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004469/0.4864, allocations: 2.159 MB / 490.6 MB, free: 4.801 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001108/0.4876, allocations: 0.7218 MB / 491.4 MB, free: 4.074 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005854/0.4935, allocations: 3.986 MB / 495.3 MB, free: 15.77 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.739e-05/0.4935, allocations: 43.5 kB / 495.4 MB, free: 15.71 MB / 366.1 MB Notification: Performance of pre-optimization done (n=114): time 3.627e-06/0.4935, allocations: 0 / 495.4 MB, free: 15.71 MB / 366.1 MB Notification: Performance of matching and sorting (n=117): time 0.01059/0.5041, allocations: 4.39 MB / 499.8 MB, free: 11.27 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.426e-05/0.5042, allocations: 60.41 kB / 499.8 MB, free: 11.2 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004121/0.5083, allocations: 2.573 MB / 0.4906 GB, free: 8.594 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.35e-05/0.5084, allocations: 45.64 kB / 0.4907 GB, free: 8.543 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001412/0.5098, allocations: 2.116 MB / 0.4927 GB, free: 6.422 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004184/0.5103, allocations: 460 kB / 0.4932 GB, free: 5.977 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001078/0.5113, allocations: 0.753 MB / 0.4939 GB, free: 5.219 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.705e-05/0.5114, allocations: 305.1 kB / 0.4942 GB, free: 4.918 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001875/0.5133, allocations: 1.163 MB / 0.4953 GB, free: 3.754 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003365/0.5167, allocations: 3.324 MB / 0.4986 GB, free: 15.37 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00536/0.5221, allocations: 4.787 MB / 0.5033 GB, free: 9.527 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.596e-05/0.5222, allocations: 20 kB / 0.5033 GB, free: 9.508 MB / 382.1 MB Notification: Performance of matching and sorting (n=487) (initialization): time 0.008816/0.531, allocations: 4.428 MB / 0.5076 GB, free: 5.078 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.526e-05/0.5311, allocations: 40 kB / 0.5077 GB, free: 5.039 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001293/0.5312, allocations: 79.94 kB / 0.5077 GB, free: 4.961 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000111/0.5313, allocations: 100 kB / 0.5078 GB, free: 4.863 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002685/0.534, allocations: 0.8427 MB / 0.5086 GB, free: 4.02 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001477/0.5342, allocations: 151.4 kB / 0.5088 GB, free: 3.871 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002779/0.537, allocations: 183.9 kB / 0.509 GB, free: 3.691 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004748/0.5375, allocations: 222.4 kB / 0.5092 GB, free: 3.477 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 345 * Number of states: 0 () * Number of discrete variables: 21 (fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],springDamper.color_b[3],springDamper.color_b[2],springDamper.color_b[1],springDamper.color_a[3],springDamper.color_a[2],springDamper.color_a[1],springDamper.color[3],springDamper.color[2],springDamper.color[1],springDamper.colorConnector_b[3],springDamper.colorConnector_b[2],springDamper.colorConnector_b[1],springDamper.colorConnector_a[3],springDamper.colorConnector_a[2],springDamper.colorConnector_a[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (459): * Single equations (assignments): 454 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002761/0.5402, allocations: 1.575 MB / 0.5107 GB, free: 1.891 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004514/0.5407, allocations: 205.6 kB / 0.5109 GB, free: 1.688 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002727/0.5434, allocations: 1.413 MB / 0.5123 GB, free: 276 kB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001354/0.5436, allocations: 23.98 kB / 0.5123 GB, free: 252 kB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.286e-05/0.5436, allocations: 3.938 kB / 0.5123 GB, free: 248 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.224e-05/0.5436, allocations: 3.984 kB / 0.5123 GB, free: 244 kB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009905/0.5535, allocations: 4.792 MB / 0.517 GB, free: 11.34 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.592e-05/0.5536, allocations: 8 kB / 0.517 GB, free: 11.33 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008257/0.5544, allocations: 176.5 kB / 0.5172 GB, free: 11.16 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-05/0.5545, allocations: 12.06 kB / 0.5172 GB, free: 11.15 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.545e-05/0.5545, allocations: 35.98 kB / 0.5172 GB, free: 11.11 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.088e-05/0.5546, allocations: 11.94 kB / 0.5172 GB, free: 11.1 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.981e-06/0.5546, allocations: 7.938 kB / 0.5172 GB, free: 11.09 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003359/0.5579, allocations: 2.368 MB / 0.5196 GB, free: 8.645 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007507/0.5587, allocations: 294.4 kB / 0.5198 GB, free: 8.336 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004876/0.5592, allocations: 24 kB / 0.5199 GB, free: 8.312 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009947/0.5602, allocations: 51.94 kB / 0.5199 GB, free: 8.262 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001311/0.5603, allocations: 75.44 kB / 0.52 GB, free: 8.191 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.032e-05/0.5604, allocations: 40 kB / 0.52 GB, free: 8.152 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002813/0.5632, allocations: 1.655 MB / 0.5216 GB, free: 6.48 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5633, allocations: 0 / 0.5216 GB, free: 6.48 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002884/0.5662, allocations: 0.6172 MB / 0.5222 GB, free: 5.863 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 6 (body.r[1],body.r[2],body.v[1],body.v[2],body.phi,body.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 (93): * Single equations (assignments): 88 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00384/0.57, allocations: 2.999 MB / 0.5252 GB, free: 2.77 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.005655/0.5757, allocations: 3.25 MB / 0.5283 GB, free: 15.54 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 7.695e-06/0.5757, allocations: 3.938 kB / 0.5283 GB, free: 15.54 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009163/0.5766, allocations: 0.6342 MB / 0.529 GB, free: 14.91 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002305/0.5789, allocations: 385.9 kB / 0.5293 GB, free: 14.55 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04812/0.6271, allocations: 28.09 MB / 0.5568 GB, free: 14.66 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003642/0.6308, allocations: 2.563 MB / 0.5593 GB, free: 12.07 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003046/0.6338, allocations: 1.113 MB / 0.5603 GB, free: 10.95 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0019/0.6358, allocations: 1.245 MB / 0.5616 GB, free: 9.707 MB / 446.1 MB Notification: Performance of SimCode: time 2.865e-06/0.6358, allocations: 0 / 0.5616 GB, free: 9.707 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2797/0.9154, allocations: 43.04 MB / 0.6036 GB, free: 138.4 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.583/9.498, allocations: 0.5312 kB / 0.6036 GB, free: 138.4 MB / 462.1 MB (rm -f PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_Examples_SpringDamperDemo_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_Examples_SpringDamperDemo.fmu > PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo.pipe 2>&1)