Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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 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 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 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_3_2_3_ModelicaTest_Rotational_TestSpeed",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.TestSpeed,fileNamePrefix="ModelicaTest_3_2_3_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.0009446/0.0009447, allocations: 97.8 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001078/0.001078, allocations: 185.1 kB / 16.92 MB, free: 6.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.333/1.333, allocations: 205.4 MB / 223.1 MB, free: 5.523 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3429/0.3429, allocations: 43.57 MB / 315 MB, free: 8.754 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005461/0.0005462, allocations: 16 kB / 384.7 MB, free: 7.559 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1126/0.1132, allocations: 58.86 MB / 443.5 MB, free: 12.59 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestSpeed): time 0.00294/0.1161, allocations: 2.29 MB / 445.8 MB, free: 10.29 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001309/0.1175, allocations: 0.6788 MB / 446.5 MB, free: 9.602 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001501/0.1176, allocations: 7.938 kB / 446.5 MB, free: 9.594 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000131/0.1178, allocations: 31.7 kB / 446.5 MB, free: 9.562 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001582/0.1179, allocations: 71.41 kB / 446.6 MB, free: 9.492 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002499/0.1182, allocations: 79.91 kB / 446.7 MB, free: 9.414 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003276/0.1185, allocations: 322.5 kB / 447 MB, free: 9.098 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001733/0.1187, allocations: 70.02 kB / 447.1 MB, free: 9.031 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001594/0.1189, allocations: 115.5 kB / 447.2 MB, free: 8.918 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001521/0.1191, allocations: 115.4 kB / 447.3 MB, free: 8.805 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.551e-05/0.1191, allocations: 12 kB / 447.3 MB, free: 8.793 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.414e-05/0.1191, allocations: 12 kB / 447.3 MB, free: 8.781 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 5.005e-05/0.1192, allocations: 51.75 kB / 447.4 MB, free: 8.73 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001384/0.1193, allocations: 153 kB / 447.5 MB, free: 8.574 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002613/0.1196, allocations: 274.8 kB / 447.8 MB, free: 8.305 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.1196, allocations: 0 / 447.8 MB, free: 8.305 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1196, allocations: 0 / 447.8 MB, free: 8.305 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.859e-06/0.1196, allocations: 0 / 447.8 MB, free: 8.305 MB / 382.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.0008754/0.1205, allocations: 0.5496 MB / 448.3 MB, free: 7.707 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.907e-05/0.1206, allocations: 12.03 kB / 448.4 MB, free: 7.695 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.936e-05/0.1207, allocations: 62.72 kB / 448.4 MB, free: 7.625 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.779e-05/0.1207, allocations: 32.56 kB / 448.4 MB, free: 7.594 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002929/0.121, allocations: 263.7 kB / 448.7 MB, free: 7.297 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.393e-05/0.1211, allocations: 24.88 kB / 448.7 MB, free: 7.273 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.909e-05/0.1211, allocations: 28.28 kB / 448.8 MB, free: 7.246 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004826/0.1216, allocations: 286.1 kB / 449 MB, free: 6.941 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.21e-05/0.1216, allocations: 3.906 kB / 449 MB, free: 6.938 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.393e-05/0.1217, allocations: 15.94 kB / 449.1 MB, free: 6.922 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.957e-06/0.1217, allocations: 4 kB / 449.1 MB, free: 6.918 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004139/0.1221, allocations: 203.8 kB / 449.3 MB, free: 6.719 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001543/0.1237, allocations: 1.321 MB / 450.6 MB, free: 5.293 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003979/0.1241, allocations: 262.3 kB / 450.8 MB, free: 5 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002015/0.1243, allocations: 103.4 kB / 450.9 MB, free: 4.887 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.529e-05/0.1243, allocations: 4 kB / 450.9 MB, free: 4.883 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.34e-05/0.1243, allocations: 46.62 kB / 451 MB, free: 4.828 MB / 382.1 MB Notification: Performance of pre-optimization done (n=26): time 1.213e-06/0.1244, allocations: 0 / 451 MB, free: 4.828 MB / 382.1 MB Notification: Performance of matching and sorting (n=32): time 0.002512/0.1269, allocations: 1.619 MB / 452.6 MB, free: 3 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.784e-05/0.127, allocations: 136.5 kB / 452.7 MB, free: 2.836 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002028/0.1272, allocations: 228.9 kB / 453 MB, free: 2.598 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.382e-05/0.1272, allocations: 29.7 kB / 453 MB, free: 2.562 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.913e-05/0.1273, allocations: 176.2 kB / 453.2 MB, free: 2.387 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.638e-05/0.1274, allocations: 114.3 kB / 453.3 MB, free: 2.273 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.942e-05/0.1274, allocations: 41.69 kB / 453.3 MB, free: 2.227 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001079/0.1276, allocations: 334.8 kB / 453.6 MB, free: 1.891 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002576/0.1278, allocations: 112.8 kB / 453.7 MB, free: 1.781 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003307/0.1282, allocations: 257.4 kB / 454 MB, free: 1.473 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006111/0.1288, allocations: 398.2 kB / 454.4 MB, free: 1.023 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.446e-06/0.1288, allocations: 4 kB / 454.4 MB, free: 1.02 MB / 382.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0007749/0.1296, allocations: 433.1 kB / 454.8 MB, free: 0.5898 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.922e-05/0.1296, allocations: 8 kB / 454.8 MB, free: 0.582 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.337e-06/0.1296, allocations: 4 kB / 454.8 MB, free: 0.5781 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.023e-05/0.1296, allocations: 8 kB / 454.8 MB, free: 0.5703 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003692/0.13, allocations: 103.9 kB / 454.9 MB, free: 480 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.361e-05/0.13, allocations: 11.92 kB / 454.9 MB, free: 468 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002077/0.1302, allocations: 32.08 kB / 455 MB, free: 436 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.76e-05/0.1303, allocations: 20 kB / 455 MB, free: 416 kB / 382.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.0001355/0.1304, allocations: 149.7 kB / 455.1 MB, free: 256 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.761e-05/0.1305, allocations: 27.72 kB / 455.2 MB, free: 228 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.075e-05/0.1306, allocations: 37.64 kB / 455.2 MB, free: 184 kB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.03e-06/0.1306, allocations: 4 kB / 455.2 MB, free: 180 kB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.136e-06/0.1306, allocations: 4 kB / 455.2 MB, free: 176 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.332e-06/0.1307, allocations: 7.984 kB / 455.2 MB, free: 168 kB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2178/0.3485, allocations: 1.005 MB / 456.2 MB, free: 45.2 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.572e-06/0.3486, allocations: 2.812 kB / 456.2 MB, free: 45.2 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003522/0.3489, allocations: 83.44 kB / 456.3 MB, free: 45.2 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.462e-06/0.3489, allocations: 3.531 kB / 456.3 MB, free: 45.2 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.916e-05/0.349, allocations: 11.03 kB / 456.3 MB, free: 45.2 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.4e-06/0.349, allocations: 5.156 kB / 456.3 MB, free: 45.2 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.364e-06/0.349, allocations: 3 kB / 456.3 MB, free: 45.2 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008452/0.3498, allocations: 0.7715 MB / 457.1 MB, free: 44.83 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.871e-05/0.3499, allocations: 98.2 kB / 457.2 MB, free: 44.73 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.7e-05/0.3499, allocations: 10.91 kB / 457.2 MB, free: 44.73 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002722/0.3502, allocations: 29.88 kB / 457.2 MB, free: 44.73 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.713e-05/0.3503, allocations: 26.52 kB / 457.3 MB, free: 44.73 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.708e-05/0.3503, allocations: 8.781 kB / 457.3 MB, free: 44.73 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001088/0.3504, allocations: 157 kB / 457.4 MB, free: 44.66 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.3504, allocations: 3.906 kB / 457.4 MB, free: 44.66 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004944/0.3509, allocations: 68.88 kB / 457.5 MB, free: 44.66 MB / 382.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.001018/0.3519, allocations: 1.302 MB / 458.8 MB, free: 43.76 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006352/0.3526, allocations: 298.8 kB / 459.1 MB, free: 43.76 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.627e-06/0.3526, allocations: 0 / 459.1 MB, free: 43.76 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002536/0.3529, allocations: 147.3 kB / 459.2 MB, free: 43.75 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006776/0.3536, allocations: 51.69 kB / 459.3 MB, free: 43.75 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003724/0.3573, allocations: 3.798 MB / 463.1 MB, free: 41.38 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001953/0.3575, allocations: 0.7692 MB / 463.9 MB, free: 40.68 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001416/0.3577, allocations: 37.22 kB / 463.9 MB, free: 40.67 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001265/0.3578, allocations: 92.34 kB / 464 MB, free: 40.66 MB / 382.1 MB Notification: Performance of SimCode: time 8.82e-07/0.3578, allocations: 0 / 464 MB, free: 40.66 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01378/0.3716, allocations: 4.796 MB / 468.8 MB, free: 40.25 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000146/0.3718, allocations: 192.7 kB / 469 MB, free: 39.99 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.808/2.179, allocations: 0 / 469 MB, free: 39.99 MB / 382.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Rotational.TestSpeed.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Rotational.TestSpeed.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Rotational.TestSpeed.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.TestSpeed.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Rotational.TestSpeed_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Rotational_TestSpeed_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Rotational_TestSpeed.fmu > ModelicaTest_3.2.3_ModelicaTest.Rotational.TestSpeed.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_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_ModelicaTest.Rotational.TestSpeed.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches