Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring.conf.json 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) 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) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Spring,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_Spring",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Spring,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_Spring",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001375/0.001375, allocations: 175.1 kB / 8.739 MB, free: 348 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.593/1.593, allocations: 221.5 MB / 230.7 MB, free: 7.52 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001009/0.001008, allocations: 98.81 kB / 281.6 MB, free: 5.27 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2171/0.2171, allocations: 44.15 MB / 376.5 MB, free: 3.047 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 2.339e-05/2.338e-05, allocations: 4.219 kB / 444.7 MB, free: 15.16 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1434/0.1435, allocations: 61.92 MB / 0.4948 GB, free: 1.172 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4386/0.5822, allocations: 105.8 MB / 0.5981 GB, free: 6.598 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000207/0.5824, allocations: 75.95 kB / 0.5982 GB, free: 6.523 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2247/0.8072, allocations: 85.85 MB / 0.682 GB, free: 44 kB / 490.7 MB Notification: Performance of FrontEnd: time 1.663e-06/0.8072, allocations: 0 / 0.682 GB, free: 44 kB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0002029/0.8074, allocations: 80.16 kB / 0.6821 GB, free: 15.96 MB / 0.4948 GB 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.0123/0.8197, allocations: 3.967 MB / 0.686 GB, free: 11.93 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.134e-05/0.8198, allocations: 15.92 kB / 0.686 GB, free: 11.91 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01207/0.8319, allocations: 2.447 MB / 0.6884 GB, free: 9.457 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01211/0.844, allocations: 4.879 MB / 0.6932 GB, free: 4.512 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002269/0.8443, allocations: 140 kB / 0.6933 GB, free: 4.375 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001554/0.8459, allocations: 259.9 kB / 0.6935 GB, free: 4.121 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.3068/1.153, allocations: 6.157 MB / 0.6996 GB, free: 115.1 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0239/1.177, allocations: 9.446 MB / 0.7088 GB, free: 112.1 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002423/1.177, allocations: 61.95 kB / 0.7088 GB, free: 112.1 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008631/1.178, allocations: 33.66 kB / 0.7089 GB, free: 112.1 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0019/1.18, allocations: 1.041 MB / 0.7099 GB, free: 112.1 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04524/1.225, allocations: 47.3 MB / 0.7561 GB, free: 80.9 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002227/1.227, allocations: 2.073 MB / 0.7581 GB, free: 79.66 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009105/1.228, allocations: 0.9175 MB / 0.759 GB, free: 79.3 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007332/1.229, allocations: 1.214 MB / 0.7602 GB, free: 78.22 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.343e-05/1.229, allocations: 52.77 kB / 0.7602 GB, free: 78.17 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=158): time 3.707e-06/1.229, allocations: 0 / 0.7602 GB, free: 78.17 MB / 0.4948 GB Notification: Performance of matching and sorting (n=170): time 0.01492/1.244, allocations: 9.059 MB / 0.7691 GB, free: 73.46 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.432e-05/1.244, allocations: 253.4 kB / 0.7693 GB, free: 73.18 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003724/1.248, allocations: 3.031 MB / 0.7723 GB, free: 72.08 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0001942/1.248, allocations: 29.3 kB / 0.7723 GB, free: 72.05 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001444/1.249, allocations: 3.21 MB / 0.7755 GB, free: 69.68 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007489/1.25, allocations: 0.653 MB / 0.7761 GB, free: 69.21 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001857/1.25, allocations: 3.75 kB / 0.7761 GB, free: 69.21 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0002978/1.251, allocations: 0.5645 MB / 0.7766 GB, free: 68.79 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001734/1.252, allocations: 1.494 MB / 0.7781 GB, free: 68.28 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003099/1.256, allocations: 5.441 MB / 0.7834 GB, free: 62.42 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00309/1.259, allocations: 2.853 MB / 0.7862 GB, free: 61.39 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.997e-05/1.259, allocations: 38.41 kB / 0.7862 GB, free: 61.39 MB / 0.4948 GB Notification: Performance of matching and sorting (n=817) (initialization): time 0.008059/1.267, allocations: 6.005 MB / 0.7921 GB, free: 59.32 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 7.023e-05/1.267, allocations: 68.22 kB / 0.7922 GB, free: 59.32 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001305/1.267, allocations: 140.6 kB / 0.7923 GB, free: 59.32 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001661/1.267, allocations: 212.9 kB / 0.7925 GB, free: 59.32 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004011/1.271, allocations: 1.5 MB / 0.794 GB, free: 59.13 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00013/1.271, allocations: 274 kB / 0.7942 GB, free: 59.07 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003954/1.275, allocations: 273.2 kB / 0.7945 GB, free: 59.04 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005737/1.276, allocations: 383.8 kB / 0.7949 GB, free: 59 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 645 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (793): * Single equations (assignments): 790 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006266/1.277, allocations: 464.5 kB / 0.7953 GB, free: 58.62 MB / 0.4948 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002177/1.279, allocations: 1.67 MB / 0.7969 GB, free: 57.99 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000366/1.279, allocations: 323.4 kB / 0.7972 GB, free: 57.81 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001729/1.281, allocations: 1.26 MB / 0.7985 GB, free: 57.3 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.669e-05/1.281, allocations: 16.88 kB / 0.7985 GB, free: 57.3 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.09e-05/1.281, allocations: 2.969 kB / 0.7985 GB, free: 57.3 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.552e-05/1.281, allocations: 11.09 kB / 0.7985 GB, free: 57.3 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007225/1.288, allocations: 5.296 MB / 0.8037 GB, free: 54.73 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.669e-05/1.288, allocations: 19 kB / 0.8037 GB, free: 54.73 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009752/1.289, allocations: 294.6 kB / 0.804 GB, free: 54.7 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.459e-05/1.289, allocations: 27.25 kB / 0.804 GB, free: 54.7 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.135e-05/1.289, allocations: 27.12 kB / 0.804 GB, free: 54.7 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.199e-05/1.289, allocations: 42.69 kB / 0.8041 GB, free: 54.7 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.387e-05/1.289, allocations: 30 kB / 0.8041 GB, free: 54.69 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003274/1.293, allocations: 5.17 MB / 0.8091 GB, free: 50.35 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006406/1.293, allocations: 392.7 kB / 0.8095 GB, free: 50.05 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002988/1.294, allocations: 31.91 kB / 0.8095 GB, free: 50.05 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00119/1.295, allocations: 72.47 kB / 0.8096 GB, free: 50.05 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001322/1.295, allocations: 153.2 kB / 0.8098 GB, free: 49.99 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001108/1.295, allocations: 66.66 kB / 0.8098 GB, free: 49.98 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.002553/1.298, allocations: 2.003 MB / 0.8118 GB, free: 49.25 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.51e-07/1.298, allocations: 0 / 0.8118 GB, free: 49.25 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.004353/1.302, allocations: 0.7766 MB / 0.8125 GB, free: 48.66 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 81 * Number of states: 4 (prismatic.s,prismatic.v,prismatic1.s,prismatic1.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (154): * Single equations (assignments): 151 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003733/1.306, allocations: 10.33 MB / 0.8226 GB, free: 38.04 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.004505/1.31, allocations: 3.444 MB / 0.826 GB, free: 34.91 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 9.728e-06/1.31, allocations: 4.188 kB / 0.826 GB, free: 34.91 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0006874/1.311, allocations: 0.7248 MB / 0.8267 GB, free: 34.25 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001728/1.313, allocations: 363.1 kB / 0.827 GB, free: 33.94 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01455/1.327, allocations: 8.333 MB / 0.8352 GB, free: 26.43 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002634/1.33, allocations: 3.268 MB / 0.8384 GB, free: 23.94 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.004251/1.334, allocations: 1.887 MB / 0.8402 GB, free: 22.77 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002024/1.336, allocations: 1.854 MB / 0.842 GB, free: 21.05 MB / 0.4948 GB Notification: Performance of SimCode: time 1.252e-06/1.336, allocations: 3.938 kB / 0.842 GB, free: 21.05 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4345/1.771, allocations: 63.03 MB / 0.9036 GB, free: 111.9 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001723/1.771, allocations: 126.6 kB / 0.9037 GB, free: 111.8 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.922/5.693, allocations: 0 / 0.9037 GB, free: 111.8 MB / 0.5261 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_Spring_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_Spring.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring_res.mat does not exist to compare? outputFormat=mat