Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Spring,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_Spring",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Spring,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_Spring",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001666/0.001666, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002229/0.00223, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.429/1.429, allocations: 227.4 MB / 246.8 MB, free: 10.64 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2178/0.2178, allocations: 46.11 MB / 344.1 MB, free: 11.62 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001453/0.001453, allocations: 82 kB / 417.7 MB, free: 19.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1137/0.1152, allocations: 62.44 MB / 480.1 MB, free: 5.203 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Spring): time 0.01288/0.1281, allocations: 11.36 MB / 491.5 MB, free: 9.781 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00919/0.1373, allocations: 4.057 MB / 495.5 MB, free: 5.711 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002344/0.1397, allocations: 67.81 kB / 495.6 MB, free: 5.645 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005438/0.1452, allocations: 2.484 MB / 498.1 MB, free: 3.152 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004923/0.1502, allocations: 1.836 MB / 499.9 MB, free: 1.309 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001873/0.1521, allocations: 0.7761 MB / 0.489 GB, free: 0.5312 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.00627/0.1584, allocations: 4.504 MB / 0.4934 GB, free: 12.02 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005621/0.1641, allocations: 3.323 MB / 0.4966 GB, free: 8.648 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003524/0.1676, allocations: 1.557 MB / 0.4981 GB, free: 7.086 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003942/0.1716, allocations: 2.216 MB / 0.5003 GB, free: 4.863 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001614/0.1732, allocations: 332 kB / 0.5006 GB, free: 4.539 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003742/0.177, allocations: 0.9558 MB / 0.5016 GB, free: 3.582 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003353/0.1804, allocations: 1.913 MB / 0.5034 GB, free: 1.664 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.2184/0.3989, allocations: 2.246 MB / 0.5056 GB, free: 18.11 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01299/0.4119, allocations: 6.58 MB / 0.512 GB, free: 17.68 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.119e-06/0.4119, allocations: 0 / 0.512 GB, free: 17.68 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.704e-06/0.412, allocations: 0 / 0.512 GB, free: 17.68 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003041/0.4123, allocations: 1.344 kB / 0.512 GB, free: 17.68 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1535 * Number of variables: 1535 Notification: Performance of Generate backend data structure: time 0.01479/0.4271, allocations: 4.811 MB / 0.5167 GB, free: 15.76 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.404e-05/0.4271, allocations: 14.06 kB / 0.5168 GB, free: 15.76 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001769/0.4289, allocations: 0.7313 MB / 0.5175 GB, free: 15.68 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008112/0.437, allocations: 1.964 MB / 0.5194 GB, free: 15.4 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006752/0.4438, allocations: 2.729 MB / 0.5221 GB, free: 14.81 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003805/0.4442, allocations: 253 kB / 0.5223 GB, free: 14.8 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001913/0.4462, allocations: 333.9 kB / 0.5226 GB, free: 14.8 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02808/0.4743, allocations: 10.23 MB / 0.5326 GB, free: 10.03 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002019/0.4745, allocations: 45.72 kB / 0.5326 GB, free: 10.03 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008846/0.4754, allocations: 159.5 kB / 0.5328 GB, free: 9.953 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004292/0.4797, allocations: 1.909 MB / 0.5347 GB, free: 9.242 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01982/0.4996, allocations: 8.163 MB / 0.5426 GB, free: 5.367 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04729/0.5469, allocations: 39.41 MB / 0.5811 GB, free: 13.32 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008389/0.5553, allocations: 3.307 MB / 0.5843 GB, free: 9.855 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001655/0.557, allocations: 1.062 MB / 0.5854 GB, free: 8.789 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008808/0.5659, allocations: 5.983 MB / 0.5912 GB, free: 2.469 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.673e-05/0.5659, allocations: 50.84 kB / 0.5913 GB, free: 2.414 MB / 430.1 MB Notification: Performance of pre-optimization done (n=148): time 4.489e-06/0.566, allocations: 0 / 0.5913 GB, free: 2.414 MB / 430.1 MB Notification: Performance of matching and sorting (n=160): time 0.025/0.591, allocations: 9.518 MB / 0.6006 GB, free: 8.809 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.732e-05/0.5911, allocations: 149.5 kB / 0.6007 GB, free: 8.629 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006676/0.5978, allocations: 4.051 MB / 0.6047 GB, free: 4.551 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001513/0.5979, allocations: 52.36 kB / 0.6047 GB, free: 4.496 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002319/0.6003, allocations: 3.179 MB / 0.6078 GB, free: 1.316 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006203/0.6009, allocations: 0.634 MB / 0.6084 GB, free: 0.6875 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00155/0.6024, allocations: 1.205 MB / 0.6096 GB, free: 15.47 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001006/0.6026, allocations: 308.3 kB / 0.6099 GB, free: 15.17 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002636/0.6052, allocations: 1.644 MB / 0.6115 GB, free: 13.52 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005152/0.6104, allocations: 5.507 MB / 0.6169 GB, free: 6.152 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008562/0.6189, allocations: 7.785 MB / 0.6245 GB, free: 13.01 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.291e-05/0.6191, allocations: 40 kB / 0.6245 GB, free: 12.97 MB / 478.1 MB Notification: Performance of matching and sorting (n=791) (initialization): time 0.01263/0.6317, allocations: 6.874 MB / 0.6313 GB, free: 6.273 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001055/0.6318, allocations: 64 kB / 0.6313 GB, free: 6.211 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001855/0.632, allocations: 136 kB / 0.6314 GB, free: 6.078 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001803/0.6322, allocations: 180 kB / 0.6316 GB, free: 5.902 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004453/0.6367, allocations: 1.431 MB / 0.633 GB, free: 4.469 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002736/0.637, allocations: 267 kB / 0.6333 GB, free: 4.207 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004661/0.6417, allocations: 295.6 kB / 0.6335 GB, free: 3.918 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001098/0.6428, allocations: 375.9 kB / 0.6339 GB, free: 3.551 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 625 * Number of states: 0 () * Number of discrete variables: 39 (prismatic1.boxColor[3],prismatic1.boxColor[2],prismatic1.boxColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (767): * Single equations (assignments): 764 * Array equations: 3 * 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.00458/0.6474, allocations: 2.033 MB / 0.6359 GB, free: 1.508 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008836/0.6483, allocations: 355.3 kB / 0.6362 GB, free: 1.156 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0011/0.6494, allocations: 418.9 kB / 0.6366 GB, free: 0.7383 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.204e-05/0.6494, allocations: 23.98 kB / 0.6367 GB, free: 0.7148 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.337e-05/0.6494, allocations: 3.938 kB / 0.6367 GB, free: 0.7109 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.892e-05/0.6495, allocations: 15.81 kB / 0.6367 GB, free: 0.6992 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01099/0.6605, allocations: 5.844 MB / 0.6424 GB, free: 10.57 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.759e-05/0.6605, allocations: 16 kB / 0.6424 GB, free: 10.56 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009985/0.6615, allocations: 283.5 kB / 0.6427 GB, free: 10.28 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.448e-05/0.6616, allocations: 24 kB / 0.6427 GB, free: 10.26 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001085/0.6617, allocations: 48 kB / 0.6427 GB, free: 10.21 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.03e-05/0.6617, allocations: 36.39 kB / 0.6428 GB, free: 10.18 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-05/0.6617, allocations: 31.88 kB / 0.6428 GB, free: 10.14 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003986/0.6657, allocations: 3.313 MB / 0.646 GB, free: 6.586 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008761/0.6666, allocations: 408.5 kB / 0.6464 GB, free: 6.164 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006539/0.6673, allocations: 54.09 kB / 0.6465 GB, free: 6.113 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001531/0.6688, allocations: 63.95 kB / 0.6465 GB, free: 6.051 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001801/0.669, allocations: 143.4 kB / 0.6467 GB, free: 5.91 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001128/0.6691, allocations: 71.98 kB / 0.6467 GB, free: 5.84 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003839/0.673, allocations: 2.516 MB / 0.6492 GB, free: 3.312 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.673, allocations: 0 / 0.6492 GB, free: 3.312 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004841/0.6778, allocations: 0.8865 MB / 0.6501 GB, free: 2.43 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 78 * Number of states: 4 (prismatic.s,prismatic.v,prismatic1.s,prismatic1.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 (145): * Single equations (assignments): 142 * Array equations: 3 * 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.004484/0.6823, allocations: 3.962 MB / 0.6539 GB, free: 14.21 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.007657/0.69, allocations: 3.975 MB / 0.6578 GB, free: 10.27 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.518e-05/0.69, allocations: 1.562 kB / 0.6578 GB, free: 10.27 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.001167/0.6912, allocations: 0.7621 MB / 0.6586 GB, free: 9.508 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004082/0.6953, allocations: 479.9 kB / 0.659 GB, free: 9.047 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08873/0.7841, allocations: 47.29 MB / 0.7052 GB, free: 1.371 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2379/1.022, allocations: 3.163 MB / 0.7083 GB, free: 200.2 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.006679/1.029, allocations: 1.807 MB / 0.7101 GB, free: 200.2 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00372/1.033, allocations: 1.867 MB / 0.7119 GB, free: 200.2 MB / 0.545 GB Notification: Performance of SimCode: time 1.563e-06/1.033, allocations: 0 / 0.7119 GB, free: 200.2 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1114/1.144, allocations: 62.54 MB / 0.7729 GB, free: 152.8 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.973/11.12, allocations: 7.984 kB / 0.773 GB, free: 152.8 MB / 0.545 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0012 ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_Spring.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/Spring/Spring.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches