Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Rotational.TestSpeed.conf.json 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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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_trunk_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_trunk_cpp_ModelicaTest.Rotational.TestSpeed") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001506/0.001506, allocations: 194 kB / 16.79 MB, free: 5.035 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.298/1.298, allocations: 226.5 MB / 244.1 MB, free: 8.258 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007611/0.0007613, allocations: 106.8 kB / 296.1 MB, free: 6.945 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3001/0.3001, allocations: 44.83 MB / 393 MB, free: 35.74 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002628/0.0002628, allocations: 11.98 kB / 465.9 MB, free: 12.76 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2917/0.292, allocations: 62.94 MB / 0.5165 GB, free: 37.16 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1031/0.3952, allocations: 89.7 MB / 0.6041 GB, free: 15.74 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002272/0.3954, allocations: 67.95 kB / 0.6041 GB, free: 15.67 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0142/0.4096, allocations: 5.01 MB / 0.609 GB, free: 10.64 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.063e-06/0.4097, allocations: 4 kB / 0.609 GB, free: 10.64 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.767e-05/0.4097, allocations: 8 kB / 0.609 GB, free: 10.63 MB / 426.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.000694/0.4104, allocations: 0.5537 MB / 0.6096 GB, free: 10.03 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.059e-05/0.4105, allocations: 12.86 kB / 0.6096 GB, free: 10.02 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002085/0.4107, allocations: 52.55 kB / 0.6096 GB, free: 9.965 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002602/0.4109, allocations: 264.6 kB / 0.6099 GB, free: 9.668 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.016e-05/0.411, allocations: 20.94 kB / 0.6099 GB, free: 9.648 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.634e-05/0.411, allocations: 24.38 kB / 0.6099 GB, free: 9.625 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000444/0.4115, allocations: 286.4 kB / 0.6102 GB, free: 9.32 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.19e-05/0.4115, allocations: 8.094 kB / 0.6102 GB, free: 9.312 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.709e-05/0.4115, allocations: 11.94 kB / 0.6102 GB, free: 9.301 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.756e-06/0.4116, allocations: 12 kB / 0.6102 GB, free: 9.289 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003987/0.412, allocations: 195.8 kB / 0.6104 GB, free: 9.098 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001523/0.4135, allocations: 1.306 MB / 0.6117 GB, free: 7.688 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004052/0.4139, allocations: 258.4 kB / 0.6119 GB, free: 7.398 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002011/0.4141, allocations: 107.7 kB / 0.612 GB, free: 7.281 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.821e-05/0.4142, allocations: 4 kB / 0.612 GB, free: 7.277 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.997e-05/0.4142, allocations: 42.56 kB / 0.6121 GB, free: 7.227 MB / 426.7 MB Notification: Performance of pre-optimization done (n=26): time 2.074e-06/0.4142, allocations: 0 / 0.6121 GB, free: 7.227 MB / 426.7 MB Notification: Performance of matching and sorting (n=32): time 0.002478/0.4167, allocations: 1.632 MB / 0.6137 GB, free: 5.387 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.059e-05/0.4168, allocations: 136.5 kB / 0.6138 GB, free: 5.223 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002353/0.417, allocations: 217 kB / 0.614 GB, free: 4.996 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 2.645e-05/0.4171, allocations: 37.64 kB / 0.6141 GB, free: 4.953 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001005/0.4172, allocations: 176.2 kB / 0.6142 GB, free: 4.777 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.761e-05/0.4172, allocations: 110.3 kB / 0.6143 GB, free: 4.668 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.68e-05/0.4173, allocations: 8 kB / 0.6143 GB, free: 4.66 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001102/0.4174, allocations: 338.8 kB / 0.6147 GB, free: 4.32 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002402/0.4176, allocations: 112.8 kB / 0.6148 GB, free: 4.211 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003078/0.418, allocations: 249.5 kB / 0.615 GB, free: 3.91 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005591/0.4185, allocations: 401.2 kB / 0.6154 GB, free: 3.457 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.824e-06/0.4185, allocations: 0 / 0.6154 GB, free: 3.457 MB / 426.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0007007/0.4192, allocations: 416.9 kB / 0.6158 GB, free: 3.043 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.942e-05/0.4193, allocations: 8 kB / 0.6158 GB, free: 3.035 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.586e-06/0.4193, allocations: 4 kB / 0.6158 GB, free: 3.031 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.663e-05/0.4193, allocations: 4 kB / 0.6158 GB, free: 3.027 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003611/0.4197, allocations: 111.8 kB / 0.6159 GB, free: 2.918 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.355e-05/0.4197, allocations: 7.984 kB / 0.6159 GB, free: 2.91 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001915/0.4199, allocations: 32.17 kB / 0.6159 GB, free: 2.879 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.542e-05/0.4199, allocations: 20 kB / 0.616 GB, free: 2.859 MB / 426.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.0001326/0.4201, allocations: 149.7 kB / 0.6161 GB, free: 2.703 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.235e-05/0.4202, allocations: 35.56 kB / 0.6161 GB, free: 2.668 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.539e-05/0.4202, allocations: 33.7 kB / 0.6162 GB, free: 2.633 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.508e-06/0.4202, allocations: 8 kB / 0.6162 GB, free: 2.625 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.009e-06/0.4203, allocations: 4.188 kB / 0.6162 GB, free: 2.621 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.781e-06/0.4203, allocations: 3.984 kB / 0.6162 GB, free: 2.617 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001379/0.4216, allocations: 1.009 MB / 0.6172 GB, free: 1.543 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.4217, allocations: 0 / 0.6172 GB, free: 1.543 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003446/0.422, allocations: 87.95 kB / 0.6173 GB, free: 1.457 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.641e-06/0.422, allocations: 7.938 kB / 0.6173 GB, free: 1.449 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.364e-05/0.4221, allocations: 11.98 kB / 0.6173 GB, free: 1.438 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.426e-06/0.4221, allocations: 7.938 kB / 0.6173 GB, free: 1.43 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.4221, allocations: 0 / 0.6173 GB, free: 1.43 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009007/0.423, allocations: 0.7616 MB / 0.618 GB, free: 0.6445 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.544e-05/0.4231, allocations: 104.9 kB / 0.6181 GB, free: 0.5234 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.716e-05/0.4231, allocations: 8.125 kB / 0.6181 GB, free: 0.5156 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002694/0.4234, allocations: 31.92 kB / 0.6182 GB, free: 496 kB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.808e-05/0.4234, allocations: 27.95 kB / 0.6182 GB, free: 468 kB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.486e-05/0.4235, allocations: 4 kB / 0.6182 GB, free: 464 kB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0001197/0.4236, allocations: 160.5 kB / 0.6183 GB, free: 304 kB / 426.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4236, allocations: 0 / 0.6183 GB, free: 304 kB / 426.7 MB Notification: Performance of remove unused functions: time 0.0004474/0.4241, allocations: 72 kB / 0.6184 GB, free: 232 kB / 426.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.0001185/0.4242, allocations: 111.2 kB / 0.6185 GB, free: 112 kB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0005951/0.4248, allocations: 304.9 kB / 0.6188 GB, free: 15.81 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.514e-06/0.4248, allocations: 0 / 0.6188 GB, free: 15.81 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000293/0.4251, allocations: 136.4 kB / 0.6189 GB, free: 15.68 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006328/0.4257, allocations: 55.05 kB / 0.619 GB, free: 15.63 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001336/0.4271, allocations: 1.098 MB / 0.6201 GB, free: 14.48 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002917/0.4274, allocations: 0.7683 MB / 0.6208 GB, free: 13.68 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.57e-05/0.4275, allocations: 35.42 kB / 0.6208 GB, free: 13.64 MB / 442.7 MB Notification: Performance of SimCode: time 2.41e-07/0.4275, allocations: 0 / 0.6208 GB, free: 13.64 MB / 442.7 MB Notification: Performance of Templates: time 0.004428/0.4319, allocations: 3.262 MB / 0.624 GB, free: 10.39 MB / 442.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Rotational.TestSpeed.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Rotational.TestSpeed.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Rotational.TestSpeed.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Rotational.TestSpeed.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Rotational.TestSpeed.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Rotational.TestSpeed --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Rotational.TestSpeed.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Rotational.TestSpeed_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/TestSpeed/TestSpeed.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Rotational.TestSpeed.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches