Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.conf.json 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/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/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 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Rotational.TestSpeed,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_TestSpeed",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.TestSpeed,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_TestSpeed",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001364/0.001364, allocations: 104.2 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001401/0.001402, allocations: 191.9 kB / 18.56 MB, free: 4.605 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.298/1.298, allocations: 222.9 MB / 242.3 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1946/0.1946, allocations: 44.17 MB / 336.6 MB, free: 2.754 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001355/0.001355, allocations: 62.25 kB / 408.5 MB, free: 27.13 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08794/0.08931, allocations: 60.82 MB / 469.3 MB, free: 14.28 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestSpeed): time 0.003678/0.09303, allocations: 2.604 MB / 472 MB, free: 11.66 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009313/0.09399, allocations: 0.6389 MB / 472.6 MB, free: 11.01 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001206/0.09412, allocations: 7.938 kB / 472.6 MB, free: 11 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001354/0.09427, allocations: 47.52 kB / 472.6 MB, free: 10.96 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001428/0.09443, allocations: 87.2 kB / 472.7 MB, free: 10.87 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002107/0.09465, allocations: 83.88 kB / 472.8 MB, free: 10.79 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00029/0.09495, allocations: 334.6 kB / 473.1 MB, free: 10.46 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001598/0.09512, allocations: 73.95 kB / 473.2 MB, free: 10.38 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001437/0.09527, allocations: 123.5 kB / 473.3 MB, free: 10.26 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001443/0.09542, allocations: 139.4 kB / 473.5 MB, free: 10.12 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.837e-05/0.09547, allocations: 20 kB / 473.5 MB, free: 10.11 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.406e-05/0.09552, allocations: 27.94 kB / 473.5 MB, free: 10.08 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.816e-05/0.09557, allocations: 59.77 kB / 473.6 MB, free: 10.02 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001114/0.09569, allocations: 147.2 kB / 473.7 MB, free: 9.875 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002464/0.09594, allocations: 287.2 kB / 474 MB, free: 9.594 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.616e-06/0.09595, allocations: 0 / 474 MB, free: 9.594 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.765e-06/0.09596, allocations: 0 / 474 MB, free: 9.594 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.571e-06/0.09597, allocations: 3.938 kB / 474 MB, free: 9.59 MB / 350.1 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.0007733/0.09675, allocations: 0.5886 MB / 474.6 MB, free: 8.953 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.383e-05/0.09679, allocations: 8.031 kB / 474.6 MB, free: 8.945 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.4e-05/0.09685, allocations: 58.73 kB / 474.7 MB, free: 8.879 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.21e-05/0.09692, allocations: 32.56 kB / 474.7 MB, free: 8.848 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002527/0.09718, allocations: 272.4 kB / 475 MB, free: 8.543 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.681e-05/0.09721, allocations: 16.94 kB / 475 MB, free: 8.527 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.253e-05/0.09726, allocations: 32.28 kB / 475 MB, free: 8.496 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004287/0.09769, allocations: 286 kB / 475.3 MB, free: 8.191 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.925e-05/0.09772, allocations: 8 kB / 475.3 MB, free: 8.184 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.039e-05/0.09775, allocations: 4 kB / 475.3 MB, free: 8.18 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.206e-06/0.09776, allocations: 12 kB / 475.3 MB, free: 8.168 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003807/0.09815, allocations: 183.8 kB / 475.5 MB, free: 7.988 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001431/0.09959, allocations: 1.313 MB / 476.8 MB, free: 6.566 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003772/0.09998, allocations: 242.4 kB / 477 MB, free: 6.293 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001886/0.1002, allocations: 103.5 kB / 477.1 MB, free: 6.18 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.24e-05/0.1002, allocations: 4 kB / 477.1 MB, free: 6.176 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.173e-05/0.1002, allocations: 38.55 kB / 477.2 MB, free: 6.129 MB / 350.1 MB Notification: Performance of pre-optimization done (n=26): time 1.533e-06/0.1003, allocations: 0 / 477.2 MB, free: 6.129 MB / 350.1 MB Notification: Performance of matching and sorting (n=32): time 0.00239/0.1026, allocations: 1.572 MB / 478.7 MB, free: 4.348 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.087e-05/0.1027, allocations: 140.5 kB / 478.9 MB, free: 4.18 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001774/0.1029, allocations: 221 kB / 479.1 MB, free: 3.957 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.284e-05/0.1029, allocations: 33.7 kB / 479.1 MB, free: 3.918 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001011/0.103, allocations: 176.2 kB / 479.3 MB, free: 3.742 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.703e-05/0.1031, allocations: 122.3 kB / 479.4 MB, free: 3.621 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.899e-05/0.1032, allocations: 70.12 kB / 479.5 MB, free: 3.547 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.76e-05/0.1033, allocations: 338.8 kB / 479.8 MB, free: 3.207 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002345/0.1036, allocations: 100.8 kB / 479.9 MB, free: 3.105 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002949/0.1039, allocations: 229.5 kB / 480.1 MB, free: 2.824 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005573/0.1044, allocations: 378.2 kB / 480.5 MB, free: 2.395 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.827e-06/0.1044, allocations: 4 kB / 480.5 MB, free: 2.391 MB / 350.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0007017/0.1052, allocations: 393 kB / 480.9 MB, free: 2 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.536e-05/0.1052, allocations: 12.03 kB / 480.9 MB, free: 1.988 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.636e-06/0.1052, allocations: 4 kB / 480.9 MB, free: 1.984 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.768e-05/0.1052, allocations: 8 kB / 480.9 MB, free: 1.977 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003559/0.1056, allocations: 99.81 kB / 481 MB, free: 1.879 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.216e-05/0.1056, allocations: 7.984 kB / 481 MB, free: 1.871 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001988/0.1058, allocations: 27.98 kB / 481.1 MB, free: 1.844 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.277e-05/0.1058, allocations: 16 kB / 481.1 MB, free: 1.828 MB / 350.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001331/0.106, allocations: 161.6 kB / 481.2 MB, free: 1.66 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.52e-05/0.1061, allocations: 23.72 kB / 481.3 MB, free: 1.637 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.733e-05/0.1061, allocations: 37.7 kB / 481.3 MB, free: 1.605 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.058e-06/0.1061, allocations: 4 kB / 481.3 MB, free: 1.602 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.1062, allocations: 0 / 481.3 MB, free: 1.602 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.815e-06/0.1062, allocations: 7.984 kB / 481.3 MB, free: 1.594 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001328/0.1075, allocations: 0.9816 MB / 482.3 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.49e-06/0.1075, allocations: 4 kB / 482.3 MB, free: 0.543 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003902/0.1079, allocations: 79.81 kB / 482.4 MB, free: 476 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.979e-06/0.1079, allocations: 4 kB / 482.4 MB, free: 472 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.256e-05/0.108, allocations: 11.94 kB / 482.4 MB, free: 460 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.545e-06/0.108, allocations: 0 / 482.4 MB, free: 460 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.795e-06/0.108, allocations: 4 kB / 482.4 MB, free: 456 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009499/0.1089, allocations: 0.729 MB / 483.1 MB, free: 15.69 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.27e-05/0.109, allocations: 100.8 kB / 483.2 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.99e-05/0.1091, allocations: 12.25 kB / 483.2 MB, free: 15.56 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002774/0.1093, allocations: 24.25 kB / 483.3 MB, free: 15.54 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.225e-05/0.1094, allocations: 23.97 kB / 483.3 MB, free: 15.52 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.644e-05/0.1094, allocations: 12 kB / 483.3 MB, free: 15.5 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001931/0.1096, allocations: 160.4 kB / 483.4 MB, free: 15.34 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1096, allocations: 4 kB / 483.4 MB, free: 15.34 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004493/0.1101, allocations: 68 kB / 483.5 MB, free: 15.27 MB / 366.1 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 (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.00121/0.1113, allocations: 1.266 MB / 484.8 MB, free: 13.97 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005841/0.1119, allocations: 292.9 kB / 485.1 MB, free: 13.68 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.1119, allocations: 0 / 485.1 MB, free: 13.68 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002561/0.1122, allocations: 136.7 kB / 485.2 MB, free: 13.55 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006658/0.1129, allocations: 40.61 kB / 485.2 MB, free: 13.52 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004212/0.1171, allocations: 3.496 MB / 488.7 MB, free: 9.793 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003829/0.1175, allocations: 0.7758 MB / 489.5 MB, free: 8.992 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000128/0.1176, allocations: 26.97 kB / 489.5 MB, free: 8.969 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001285/0.1178, allocations: 95.41 kB / 489.6 MB, free: 8.875 MB / 366.1 MB Notification: Performance of SimCode: time 4.41e-07/0.1178, allocations: 0 / 489.6 MB, free: 8.875 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2025/0.3203, allocations: 5.216 MB / 494.8 MB, free: 3.73 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.457/8.777, allocations: 8.625 kB / 494.9 MB, free: 3.723 MB / 366.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Rotational_TestSpeed_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Rotational_TestSpeed.fmu > ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches