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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008255/0.0008255, allocations: 76.36 kB / 20.67 MB, free: 3.895 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008631/0.0008631, allocations: 156.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8742/0.8742, allocations: 177 MB / 204.1 MB, free: 5.746 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2444/0.2444, allocations: 34.24 MB / 294.8 MB, free: 0.6875 MB / 266.7 MB " [Timeout remaining time 180] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.154e-06/2.154e-06, allocations: 0 / 442.2 MB, free: 1.582 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.324e-05/2.54e-05, allocations: 6.281 kB / 442.2 MB, free: 1.574 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Spring): time 0.1989/0.199, allocations: 9.936 MB / 452.1 MB, free: 38.73 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.005409/0.2044, allocations: 3.883 MB / 456 MB, free: 36.29 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001072/0.2055, allocations: 81.16 kB / 456.1 MB, free: 36.26 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002288/0.2077, allocations: 2.556 MB / 458.6 MB, free: 35.16 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002871/0.2106, allocations: 1.944 MB / 460.6 MB, free: 34.26 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001018/0.2116, allocations: 0.8519 MB / 461.4 MB, free: 33.89 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.003308/0.2149, allocations: 5.206 MB / 466.6 MB, free: 32.06 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002153/0.2171, allocations: 3.265 MB / 469.9 MB, free: 30.69 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002129/0.2192, allocations: 2.434 MB / 472.3 MB, free: 29.66 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002258/0.2215, allocations: 2.495 MB / 474.8 MB, free: 29.04 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00066/0.2221, allocations: 340.2 kB / 475.2 MB, free: 29.04 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001229/0.2234, allocations: 0.9167 MB / 476.1 MB, free: 28.88 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001102/0.2245, allocations: 2.057 MB / 478.1 MB, free: 28 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001478/0.2259, allocations: 1.329 MB / 479.5 MB, free: 27.36 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007129/0.2331, allocations: 6.877 MB / 486.3 MB, free: 24.94 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.2331, allocations: 1.594 kB / 486.3 MB, free: 24.94 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.195e-06/0.2331, allocations: 4.688 kB / 486.3 MB, free: 24.94 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002406/0.2333, allocations: 0 / 486.3 MB, free: 24.94 MB / 410.7 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.009772/0.2431, allocations: 4.931 MB / 491.3 MB, free: 22.21 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.861e-05/0.2431, allocations: 9.906 kB / 491.3 MB, free: 22.21 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001127/0.2443, allocations: 0.7267 MB / 492 MB, free: 21.84 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00516/0.2494, allocations: 2.149 MB / 494.2 MB, free: 21.46 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003942/0.2534, allocations: 2.406 MB / 496.6 MB, free: 20.28 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001686/0.2535, allocations: 248.5 kB / 496.8 MB, free: 20.16 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005393/0.2541, allocations: 325.8 kB / 497.1 MB, free: 20.05 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0132/0.2673, allocations: 10.35 MB / 0.4956 GB, free: 13.63 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001222/0.2674, allocations: 49.3 kB / 0.4956 GB, free: 13.6 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003246/0.2677, allocations: 162 kB / 0.4958 GB, free: 13.49 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001641/0.2694, allocations: 1.908 MB / 0.4976 GB, free: 12.46 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01007/0.2794, allocations: 8.167 MB / 0.5056 GB, free: 4.285 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03471/0.3142, allocations: 38.05 MB / 0.5428 GB, free: 13.05 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004882/0.319, allocations: 2.859 MB / 0.5456 GB, free: 10.14 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001061/0.3201, allocations: 0.9595 MB / 0.5465 GB, free: 9.164 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006164/0.3263, allocations: 4.474 MB / 0.5509 GB, free: 4.672 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.59e-05/0.3263, allocations: 51.5 kB / 0.5509 GB, free: 4.613 MB / 458.7 MB Notification: Performance of pre-optimization done (n=148): time 5e-06/0.3263, allocations: 0 / 0.5509 GB, free: 4.613 MB / 458.7 MB Notification: Performance of matching and sorting (n=160): time 0.01547/0.3418, allocations: 10.03 MB / 0.5607 GB, free: 10.54 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.79e-05/0.3419, allocations: 196.9 kB / 0.5609 GB, free: 10.3 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005271/0.3471, allocations: 4.608 MB / 0.5654 GB, free: 5.66 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002603/0.3474, allocations: 45.7 kB / 0.5655 GB, free: 5.609 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001742/0.3491, allocations: 3.287 MB / 0.5687 GB, free: 2.289 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000621/0.3498, allocations: 0.6513 MB / 0.5693 GB, free: 1.633 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001317/0.3511, allocations: 1.195 MB / 0.5705 GB, free: 436 kB / 474.7 MB Notification: Performance of setup shared object (initialization): time 7.747e-05/0.3512, allocations: 309.1 kB / 0.5708 GB, free: 124 kB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002087/0.3532, allocations: 1.659 MB / 0.5724 GB, free: 14.45 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003981/0.3572, allocations: 5.591 MB / 0.5778 GB, free: 6.91 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007343/0.3646, allocations: 7.784 MB / 0.5854 GB, free: 13.21 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.00012/0.3647, allocations: 44 kB / 0.5855 GB, free: 13.16 MB / 0.4948 GB Notification: Performance of matching and sorting (n=791) (initialization): time 0.01005/0.3747, allocations: 6.942 MB / 0.5923 GB, free: 6.219 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 6.929e-05/0.3748, allocations: 64.97 kB / 0.5923 GB, free: 6.156 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000112/0.3749, allocations: 140.2 kB / 0.5925 GB, free: 6.02 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001118/0.375, allocations: 184 kB / 0.5926 GB, free: 5.84 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002731/0.3778, allocations: 1.443 MB / 0.594 GB, free: 4.395 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002078/0.378, allocations: 267 kB / 0.5943 GB, free: 4.133 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003081/0.3811, allocations: 403.5 kB / 0.5947 GB, free: 3.738 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004634/0.3815, allocations: 372 kB / 0.595 GB, free: 3.375 MB / 0.4948 GB 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.003025/0.3845, allocations: 2.041 MB / 0.597 GB, free: 1.324 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007109/0.3853, allocations: 369.5 kB / 0.5974 GB, free: 0.9609 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005689/0.3858, allocations: 410.7 kB / 0.5978 GB, free: 0.5508 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.221e-05/0.3858, allocations: 23.98 kB / 0.5978 GB, free: 0.5273 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.079e-05/0.3859, allocations: 0 / 0.5978 GB, free: 0.5273 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.887e-06/0.3859, allocations: 3.984 kB / 0.5978 GB, free: 0.5234 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007702/0.3936, allocations: 5.637 MB / 0.6033 GB, free: 10.59 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.037e-05/0.3936, allocations: 19.94 kB / 0.6033 GB, free: 10.57 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006223/0.3942, allocations: 284.3 kB / 0.6036 GB, free: 10.3 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.966e-05/0.3942, allocations: 24 kB / 0.6036 GB, free: 10.27 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.718e-05/0.3943, allocations: 52 kB / 0.6037 GB, free: 10.22 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.3e-05/0.3943, allocations: 35.86 kB / 0.6037 GB, free: 10.19 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.401e-05/0.3943, allocations: 29.88 kB / 0.6037 GB, free: 10.16 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003522/0.3979, allocations: 3.29 MB / 0.6069 GB, free: 6.629 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008854/0.3987, allocations: 401.3 kB / 0.6073 GB, free: 6.234 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003001/0.399, allocations: 55.98 kB / 0.6074 GB, free: 6.18 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008282/0.3999, allocations: 119.9 kB / 0.6075 GB, free: 6.062 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001238/0.4, allocations: 151.3 kB / 0.6076 GB, free: 5.914 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.515e-05/0.4001, allocations: 64 kB / 0.6077 GB, free: 5.852 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.003625/0.4037, allocations: 2.762 MB / 0.6104 GB, free: 3.078 MB / 0.5105 GB Notification: Performance of sort global known variables: time 2.01e-07/0.4037, allocations: 0 / 0.6104 GB, free: 3.078 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.003918/0.4076, allocations: 0.9881 MB / 0.6114 GB, free: 2.09 MB / 0.5105 GB 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.003666/0.4113, allocations: 3.98 MB / 0.6153 GB, free: 13.84 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.00467/0.4159, allocations: 3.687 MB / 0.6189 GB, free: 10.19 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.507e-05/0.4159, allocations: 7.938 kB / 0.6189 GB, free: 10.18 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0007233/0.4167, allocations: 0.7065 MB / 0.6195 GB, free: 9.477 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002637/0.4193, allocations: 479.4 kB / 0.62 GB, free: 9.023 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2284/0.6477, allocations: 42.51 MB / 0.6615 GB, free: 151.8 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002312/0.65, allocations: 2.633 MB / 0.6641 GB, free: 151.1 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.002686/0.6527, allocations: 1.83 MB / 0.6659 GB, free: 151 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001542/0.6543, allocations: 1.879 MB / 0.6677 GB, free: 149.5 MB / 0.5417 GB Notification: Performance of SimCode: time 1.452e-06/0.6543, allocations: 0 / 0.6677 GB, free: 149.5 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07513/0.7294, allocations: 60.47 MB / 0.7268 GB, free: 117.3 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.528/10.26, allocations: 8 kB / 0.7268 GB, free: 117.3 MB / 0.5417 GB " [Timeout remaining time 650] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_Spring_fmu --startTime=0 --stopTime=3 --stepSize=0.00059976 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_Spring.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/MultiBody/Forces/Spring/Spring.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 12.56199100613594]