Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestSpeed.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.Rotational.TestSpeed,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|speed1.phi|speed1.w|speed2.phi|speed3.s|speed3.v|speed4.s",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestSpeed") translateModel(ModelicaTest.Rotational.TestSpeed,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|speed1.phi|speed1.w|speed2.phi|speed3.s|speed3.v|speed4.s",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestSpeed") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001462/0.001461, allocations: 181.3 kB / 17.41 MB, free: 4.289 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.322/2.322, allocations: 205.4 MB / 223.6 MB, free: 9.031 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001133/0.001133, allocations: 89.42 kB / 271.9 MB, free: 8.277 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.4809/0.4809, allocations: 43.56 MB / 363.8 MB, free: 51.87 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007169/0.0007171, allocations: 16 kB / 432.6 MB, free: 5.684 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1862/0.187, allocations: 58.84 MB / 491.4 MB, free: 10.76 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5212/0.7083, allocations: 87.55 MB / 0.5654 GB, free: 14.8 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004586/0.7089, allocations: 63.97 kB / 0.5655 GB, free: 14.73 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02193/0.7308, allocations: 4.798 MB / 0.5702 GB, free: 9.957 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.115e-06/0.7309, allocations: 0 / 0.5702 GB, free: 9.957 MB / 394.7 MB Notification: Performance of Transformations before backend: time 2.917e-05/0.7309, allocations: 8 kB / 0.5702 GB, free: 9.949 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.001302/0.7322, allocations: 0.5454 MB / 0.5707 GB, free: 9.355 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.524e-05/0.7323, allocations: 8.031 kB / 0.5707 GB, free: 9.348 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001036/0.7324, allocations: 35.38 kB / 0.5707 GB, free: 9.316 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005468/0.733, allocations: 267.4 kB / 0.571 GB, free: 9.016 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.62e-05/0.733, allocations: 20.77 kB / 0.571 GB, free: 9 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.199e-05/0.7331, allocations: 32.31 kB / 0.571 GB, free: 8.969 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008436/0.734, allocations: 282.6 kB / 0.5713 GB, free: 8.676 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.1e-05/0.7341, allocations: 12.08 kB / 0.5713 GB, free: 8.664 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.723e-05/0.7341, allocations: 15.94 kB / 0.5713 GB, free: 8.648 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.556e-05/0.7341, allocations: 8 kB / 0.5713 GB, free: 8.641 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007279/0.7349, allocations: 199.7 kB / 0.5715 GB, free: 8.445 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002803/0.7377, allocations: 1.304 MB / 0.5728 GB, free: 7.039 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007043/0.7384, allocations: 251.9 kB / 0.573 GB, free: 6.758 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003401/0.7388, allocations: 107.4 kB / 0.5732 GB, free: 6.641 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.194e-05/0.7388, allocations: 8 kB / 0.5732 GB, free: 6.633 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.275e-05/0.7389, allocations: 38.5 kB / 0.5732 GB, free: 6.586 MB / 394.7 MB Notification: Performance of pre-optimization done (n=26): time 3.717e-06/0.7389, allocations: 0 / 0.5732 GB, free: 6.586 MB / 394.7 MB Notification: Performance of matching and sorting (n=32): time 0.004157/0.7431, allocations: 1.625 MB / 0.5748 GB, free: 4.758 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001216/0.7432, allocations: 136.5 kB / 0.5749 GB, free: 4.594 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003808/0.7436, allocations: 225 kB / 0.5751 GB, free: 4.371 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 4.157e-05/0.7437, allocations: 29.8 kB / 0.5752 GB, free: 4.336 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001756/0.7439, allocations: 176.2 kB / 0.5753 GB, free: 4.16 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001434/0.744, allocations: 114.3 kB / 0.5754 GB, free: 4.047 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.824e-05/0.7441, allocations: 12 kB / 0.5754 GB, free: 4.035 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002121/0.7443, allocations: 338.8 kB / 0.5758 GB, free: 3.695 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004257/0.7447, allocations: 116.8 kB / 0.5759 GB, free: 3.578 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005711/0.7453, allocations: 249.4 kB / 0.5761 GB, free: 3.273 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001077/0.7464, allocations: 389.1 kB / 0.5765 GB, free: 2.832 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.657e-06/0.7464, allocations: 4 kB / 0.5765 GB, free: 2.828 MB / 394.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001392/0.7478, allocations: 417 kB / 0.5769 GB, free: 2.414 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.491e-05/0.7479, allocations: 7.938 kB / 0.5769 GB, free: 2.406 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.756e-05/0.7479, allocations: 4 kB / 0.5769 GB, free: 2.402 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.514e-05/0.748, allocations: 8 kB / 0.5769 GB, free: 2.395 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007046/0.7487, allocations: 103.9 kB / 0.577 GB, free: 2.293 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.819e-05/0.7487, allocations: 16.7 kB / 0.577 GB, free: 2.277 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004211/0.7492, allocations: 36.02 kB / 0.5771 GB, free: 2.242 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.827e-05/0.7492, allocations: 16 kB / 0.5771 GB, free: 2.227 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (48): * Single equations (assignments): 48 * Array equations: 0 * 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.0003111/0.7495, allocations: 150.2 kB / 0.5772 GB, free: 2.07 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002021/0.7498, allocations: 35.56 kB / 0.5773 GB, free: 2.035 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001228/0.7499, allocations: 29.94 kB / 0.5773 GB, free: 2.008 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.177e-05/0.7499, allocations: 4 kB / 0.5773 GB, free: 2.004 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.034e-05/0.7499, allocations: 8.859 kB / 0.5773 GB, free: 1.996 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.276e-05/0.75, allocations: 11.92 kB / 0.5773 GB, free: 1.984 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002568/0.7526, allocations: 1.013 MB / 0.5783 GB, free: 0.9062 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.056e-05/0.7526, allocations: 4.062 kB / 0.5783 GB, free: 0.9023 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006371/0.7533, allocations: 83.89 kB / 0.5784 GB, free: 0.8203 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.884e-05/0.7533, allocations: 8.062 kB / 0.5784 GB, free: 0.8125 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.799e-05/0.7534, allocations: 7.984 kB / 0.5784 GB, free: 0.8047 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.774e-06/0.7534, allocations: 7.938 kB / 0.5784 GB, free: 0.7969 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.266e-06/0.7534, allocations: 4 kB / 0.5784 GB, free: 0.793 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001681/0.7551, allocations: 0.7733 MB / 0.5792 GB, free: 0 / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001429/0.7552, allocations: 96.83 kB / 0.5793 GB, free: 15.89 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.348e-05/0.7553, allocations: 12.06 kB / 0.5793 GB, free: 15.88 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004978/0.7558, allocations: 23.92 kB / 0.5793 GB, free: 15.85 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000127/0.756, allocations: 31.89 kB / 0.5793 GB, free: 15.82 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.923e-05/0.756, allocations: 8 kB / 0.5793 GB, free: 15.81 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0002493/0.7563, allocations: 160.5 kB / 0.5795 GB, free: 15.65 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.01e-07/0.7563, allocations: 0 / 0.5795 GB, free: 15.65 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0009175/0.7572, allocations: 68 kB / 0.5795 GB, free: 15.59 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (speed4.s,speed3.s,speed3.v,speed1.phi,speed1.w,speed2.phi) * 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 (32): * Single equations (assignments): 32 * Array equations: 0 * 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.0002002/0.7574, allocations: 107.1 kB / 0.5796 GB, free: 15.47 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001127/0.7586, allocations: 300.3 kB / 0.5799 GB, free: 15.18 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.559e-06/0.7586, allocations: 64 / 0.5799 GB, free: 15.18 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004909/0.7591, allocations: 143.8 kB / 0.5801 GB, free: 15.04 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001202/0.7603, allocations: 42.7 kB / 0.5801 GB, free: 15 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002491/0.7628, allocations: 1.103 MB / 0.5812 GB, free: 13.85 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005425/0.7634, allocations: 0.7722 MB / 0.5819 GB, free: 13.04 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001492/0.7636, allocations: 27.42 kB / 0.582 GB, free: 13.02 MB / 410.7 MB Notification: Performance of SimCode: time 9.22e-07/0.7636, allocations: 4 kB / 0.582 GB, free: 13.01 MB / 410.7 MB Notification: Performance of Templates: time 0.008379/0.772, allocations: 3.267 MB / 0.5852 GB, free: 9.754 MB / 410.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestSpeed.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestSpeed.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestSpeed.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestSpeed.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestSpeed.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestSpeed --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestSpeed.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestSpeed_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/TestSpeed/TestSpeed.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestSpeed.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches