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: "" <> buildModelFMU(ModelicaTest.Rotational.TestSpeed,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Rotational_TestSpeed",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.TestSpeed,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Rotational_TestSpeed",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001502/0.001503, allocations: 198.4 kB / 16.1 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.253/1.253, allocations: 226.5 MB / 243.4 MB, free: 8.23 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007583/0.0007583, allocations: 95.53 kB / 295.5 MB, free: 6.922 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2908/0.2908, allocations: 44.82 MB / 392.3 MB, free: 35.75 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002448/0.0002451, allocations: 8 kB / 465.4 MB, free: 12.6 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2652/0.2655, allocations: 62.96 MB / 0.516 GB, free: 37.08 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestSpeed): time 0.00216/0.2677, allocations: 2.22 MB / 0.5181 GB, free: 35.48 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009787/0.2687, allocations: 0.6531 MB / 0.5188 GB, free: 35 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001445/0.2689, allocations: 5.781 kB / 0.5188 GB, free: 35 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001248/0.269, allocations: 32.83 kB / 0.5188 GB, free: 34.98 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001287/0.2691, allocations: 77.39 kB / 0.5189 GB, free: 34.93 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002267/0.2694, allocations: 67.52 kB / 0.5189 GB, free: 34.89 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.000249/0.2696, allocations: 306.6 kB / 0.5192 GB, free: 34.74 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001451/0.2698, allocations: 75.08 kB / 0.5193 GB, free: 34.7 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00019/0.27, allocations: 112.5 kB / 0.5194 GB, free: 34.65 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001235/0.2701, allocations: 116.5 kB / 0.5195 GB, free: 34.6 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 2.904e-05/0.2701, allocations: 15.78 kB / 0.5195 GB, free: 34.59 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.318e-05/0.2702, allocations: 14.81 kB / 0.5195 GB, free: 34.59 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 3.949e-05/0.2703, allocations: 46.83 kB / 0.5196 GB, free: 34.57 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001044/0.2704, allocations: 147.6 kB / 0.5197 GB, free: 34.47 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001884/0.2706, allocations: 216.9 kB / 0.5199 GB, free: 34.41 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.718e-06/0.2706, allocations: 0 / 0.5199 GB, free: 34.41 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.484e-06/0.2706, allocations: 3.328 kB / 0.5199 GB, free: 34.41 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.65e-06/0.2706, allocations: 0 / 0.5199 GB, free: 34.41 MB / 378.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.0007183/0.2713, allocations: 0.5436 MB / 0.5205 GB, free: 33.95 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.336e-05/0.2714, allocations: 8.875 kB / 0.5205 GB, free: 33.95 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.035e-05/0.2715, allocations: 61.84 kB / 0.5205 GB, free: 33.89 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002233/0.2717, allocations: 59.27 kB / 0.5206 GB, free: 33.88 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002399/0.2719, allocations: 267 kB / 0.5209 GB, free: 33.62 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.766e-05/0.272, allocations: 18.03 kB / 0.5209 GB, free: 33.62 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.204e-05/0.272, allocations: 29.31 kB / 0.5209 GB, free: 33.61 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004268/0.2724, allocations: 281.4 kB / 0.5212 GB, free: 33.45 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.129e-05/0.2725, allocations: 10.94 kB / 0.5212 GB, free: 33.44 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.116e-05/0.2725, allocations: 10.78 kB / 0.5212 GB, free: 33.43 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.093e-06/0.2725, allocations: 5.844 kB / 0.5212 GB, free: 33.43 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003829/0.2729, allocations: 198.1 kB / 0.5214 GB, free: 33.39 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001365/0.2743, allocations: 1.327 MB / 0.5227 GB, free: 32.29 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003546/0.2747, allocations: 258.8 kB / 0.5229 GB, free: 32.13 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001799/0.2748, allocations: 107.8 kB / 0.523 GB, free: 32.07 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.73e-05/0.2749, allocations: 2.781 kB / 0.523 GB, free: 32.07 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.647e-05/0.2749, allocations: 41.53 kB / 0.5231 GB, free: 32.03 MB / 378.7 MB Notification: Performance of pre-optimization done (n=26): time 2.244e-06/0.2749, allocations: 0 / 0.5231 GB, free: 32.03 MB / 378.7 MB Notification: Performance of matching and sorting (n=32): time 0.002212/0.2771, allocations: 1.632 MB / 0.5247 GB, free: 30.71 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.091e-05/0.2772, allocations: 142.1 kB / 0.5248 GB, free: 30.55 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001577/0.2773, allocations: 219.7 kB / 0.525 GB, free: 30.41 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.676e-05/0.2774, allocations: 29.7 kB / 0.525 GB, free: 30.38 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.968e-05/0.2774, allocations: 175.5 kB / 0.5252 GB, free: 30.22 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.373e-05/0.2775, allocations: 117.8 kB / 0.5253 GB, free: 30.13 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.569e-05/0.2775, allocations: 10.25 kB / 0.5253 GB, free: 30.12 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.005e-05/0.2776, allocations: 336.8 kB / 0.5256 GB, free: 29.8 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002243/0.2778, allocations: 114.7 kB / 0.5258 GB, free: 29.77 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002555/0.2781, allocations: 246.3 kB / 0.526 GB, free: 29.57 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005206/0.2786, allocations: 385 kB / 0.5264 GB, free: 29.31 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/0.2786, allocations: 2.719 kB / 0.5264 GB, free: 29.31 MB / 378.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0006512/0.2793, allocations: 425 kB / 0.5268 GB, free: 29.14 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.854e-05/0.2793, allocations: 6.188 kB / 0.5268 GB, free: 29.14 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.997e-06/0.2793, allocations: 5.969 kB / 0.5268 GB, free: 29.14 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.778e-05/0.2793, allocations: 6.188 kB / 0.5268 GB, free: 29.14 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003441/0.2797, allocations: 98.84 kB / 0.5269 GB, free: 29.14 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.178e-05/0.2797, allocations: 16.31 kB / 0.5269 GB, free: 29.13 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002034/0.2799, allocations: 49.52 kB / 0.5269 GB, free: 29.11 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.399e-05/0.28, allocations: 18.41 kB / 0.527 GB, free: 29.11 MB / 378.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.0001123/0.2801, allocations: 151 kB / 0.5271 GB, free: 28.96 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.899e-05/0.2802, allocations: 27.16 kB / 0.5271 GB, free: 28.95 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.934e-05/0.2802, allocations: 37.05 kB / 0.5272 GB, free: 28.93 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.349e-06/0.2802, allocations: 3 kB / 0.5272 GB, free: 28.93 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.193e-06/0.2803, allocations: 2.875 kB / 0.5272 GB, free: 28.93 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.097e-06/0.2803, allocations: 4 kB / 0.5272 GB, free: 28.93 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001176/0.2814, allocations: 1.009 MB / 0.5282 GB, free: 28.21 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.955e-06/0.2815, allocations: 0 / 0.5282 GB, free: 28.21 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003312/0.2818, allocations: 81.67 kB / 0.5282 GB, free: 28.21 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.759e-06/0.2818, allocations: 2.844 kB / 0.5282 GB, free: 28.21 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.226e-05/0.2818, allocations: 18.22 kB / 0.5283 GB, free: 28.2 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.427e-06/0.2818, allocations: 2.75 kB / 0.5283 GB, free: 28.2 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/0.2819, allocations: 6.844 kB / 0.5283 GB, free: 28.19 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008197/0.2827, allocations: 0.7576 MB / 0.529 GB, free: 27.7 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.07e-05/0.2827, allocations: 97.3 kB / 0.5291 GB, free: 27.59 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.656e-05/0.2828, allocations: 17.98 kB / 0.5291 GB, free: 27.58 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002647/0.283, allocations: 29.81 kB / 0.5291 GB, free: 27.57 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.848e-05/0.2831, allocations: 25.33 kB / 0.5292 GB, free: 27.56 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.754e-05/0.2832, allocations: 13 kB / 0.5292 GB, free: 27.56 MB / 378.7 MB Notification: Performance of sorting global known variables: time 9.351e-05/0.2833, allocations: 155.3 kB / 0.5293 GB, free: 27.46 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2833, allocations: 0 / 0.5293 GB, free: 27.46 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00044/0.2837, allocations: 68.72 kB / 0.5294 GB, free: 27.45 MB / 378.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.0009379/0.2847, allocations: 1.312 MB / 0.5307 GB, free: 26.4 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005557/0.2852, allocations: 299.3 kB / 0.531 GB, free: 26.32 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.2852, allocations: 0 / 0.531 GB, free: 26.32 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002441/0.2855, allocations: 145 kB / 0.5311 GB, free: 26.29 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006189/0.2861, allocations: 39.33 kB / 0.5311 GB, free: 26.27 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002663/0.2888, allocations: 2.215 MB / 0.5333 GB, free: 24.83 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001879/0.289, allocations: 0.768 MB / 0.534 GB, free: 24.13 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001409/0.2891, allocations: 97.95 kB / 0.5341 GB, free: 24.06 MB / 378.7 MB Notification: Performance of SimCode: time 5.31e-07/0.2891, allocations: 0 / 0.5341 GB, free: 24.06 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.587/2.876, allocations: 4.029 MB / 0.5381 GB, free: 23.66 MB / 378.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.Rotational.TestSpeed_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_Rotational_TestSpeed_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_Rotational_TestSpeed.fmu > 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