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.0008502/0.0008502, allocations: 96.12 kB / 17.35 MB, free: 6.371 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.0008834/0.0008833, allocations: 175.5 kB / 18.26 MB, free: 5.52 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.187/1.187, allocations: 223.3 MB / 242.3 MB, free: 224 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1606/0.1606, allocations: 44.26 MB / 337.7 MB, free: 2.672 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002993/0.0002993, allocations: 8.938 kB / 410.4 MB, free: 27.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09554/0.09585, allocations: 61.91 MB / 472.3 MB, free: 13.28 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestSpeed): time 0.003334/0.09923, allocations: 2.286 MB / 474.6 MB, free: 10.98 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001181/0.1004, allocations: 0.6467 MB / 475.3 MB, free: 10.33 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001379/0.1006, allocations: 4 kB / 475.3 MB, free: 10.32 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001313/0.1007, allocations: 27.72 kB / 475.3 MB, free: 10.3 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002169/0.101, allocations: 71.39 kB / 475.4 MB, free: 10.23 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002578/0.1012, allocations: 71.92 kB / 475.4 MB, free: 10.16 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004266/0.1017, allocations: 326.5 kB / 475.8 MB, free: 9.836 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001939/0.1019, allocations: 65.81 kB / 475.8 MB, free: 9.766 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001891/0.1021, allocations: 115.5 kB / 475.9 MB, free: 9.652 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001912/0.1023, allocations: 115.4 kB / 476.1 MB, free: 9.539 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.023e-05/0.1023, allocations: 15.94 kB / 476.1 MB, free: 9.523 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.41e-05/0.1024, allocations: 15.94 kB / 476.1 MB, free: 9.508 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.591e-05/0.1024, allocations: 43.83 kB / 476.1 MB, free: 9.465 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001685/0.1026, allocations: 156.9 kB / 476.3 MB, free: 9.305 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003293/0.103, allocations: 275.1 kB / 476.6 MB, free: 9.035 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.103, allocations: 3.938 kB / 476.6 MB, free: 9.031 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.103, allocations: 0 / 476.6 MB, free: 9.031 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.09e-06/0.103, allocations: 0 / 476.6 MB, free: 9.031 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.0009845/0.104, allocations: 0.5457 MB / 477.1 MB, free: 8.438 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.219e-05/0.104, allocations: 16.03 kB / 477.1 MB, free: 8.422 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.54e-05/0.1041, allocations: 62.72 kB / 477.2 MB, free: 8.352 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.731e-05/0.1042, allocations: 36.56 kB / 477.2 MB, free: 8.316 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003548/0.1046, allocations: 264.7 kB / 477.5 MB, free: 8.02 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.681e-05/0.1046, allocations: 24.88 kB / 477.5 MB, free: 7.996 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.887e-05/0.1047, allocations: 28.28 kB / 477.5 MB, free: 7.969 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000674/0.1054, allocations: 294.1 kB / 477.8 MB, free: 7.656 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.511e-05/0.1054, allocations: 7.844 kB / 477.8 MB, free: 7.648 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.376e-05/0.1055, allocations: 12 kB / 477.8 MB, free: 7.637 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.01e-05/0.1055, allocations: 4 kB / 477.8 MB, free: 7.633 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006556/0.1062, allocations: 207.4 kB / 478 MB, free: 7.434 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001961/0.1081, allocations: 1.313 MB / 479.4 MB, free: 6.012 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005283/0.1087, allocations: 258.3 kB / 479.6 MB, free: 5.723 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002734/0.109, allocations: 103.5 kB / 479.7 MB, free: 5.609 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.696e-05/0.109, allocations: 12.11 kB / 479.7 MB, free: 5.598 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.894e-05/0.109, allocations: 38.56 kB / 479.8 MB, free: 5.551 MB / 350.1 MB Notification: Performance of pre-optimization done (n=26): time 1.783e-06/0.109, allocations: 0 / 479.8 MB, free: 5.551 MB / 350.1 MB Notification: Performance of matching and sorting (n=32): time 0.00349/0.1125, allocations: 1.636 MB / 481.4 MB, free: 3.707 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.284e-05/0.1126, allocations: 136.5 kB / 481.5 MB, free: 3.543 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002802/0.1129, allocations: 228.9 kB / 481.7 MB, free: 3.312 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.973e-05/0.113, allocations: 29.7 kB / 481.8 MB, free: 3.277 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001368/0.1131, allocations: 180.2 kB / 482 MB, free: 3.098 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001133/0.1132, allocations: 110.3 kB / 482.1 MB, free: 2.988 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.247e-05/0.1133, allocations: 41.69 kB / 482.1 MB, free: 2.941 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001358/0.1135, allocations: 334.8 kB / 482.4 MB, free: 2.605 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003989/0.1139, allocations: 112.8 kB / 482.5 MB, free: 2.492 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005063/0.1144, allocations: 261.4 kB / 482.8 MB, free: 2.18 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008818/0.1153, allocations: 388.8 kB / 483.2 MB, free: 1.738 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.92e-06/0.1153, allocations: 4 kB / 483.2 MB, free: 1.734 MB / 350.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001118/0.1164, allocations: 420.9 kB / 483.6 MB, free: 1.316 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.991e-05/0.1165, allocations: 10.5 kB / 483.6 MB, free: 1.309 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.053e-05/0.1165, allocations: 4 kB / 483.6 MB, free: 1.305 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.16e-05/0.1165, allocations: 8 kB / 483.6 MB, free: 1.297 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005394/0.1171, allocations: 104.1 kB / 483.7 MB, free: 1.195 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.904e-05/0.1171, allocations: 12.39 kB / 483.7 MB, free: 1.184 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003066/0.1174, allocations: 32.11 kB / 483.8 MB, free: 1.152 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.636e-05/0.1175, allocations: 20 kB / 483.8 MB, free: 1.133 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.000183/0.1176, allocations: 153.6 kB / 483.9 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001479/0.1178, allocations: 31.7 kB / 484 MB, free: 0.9414 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.127e-05/0.1179, allocations: 37.64 kB / 484 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.935e-06/0.1179, allocations: 4 kB / 484 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.236e-06/0.1179, allocations: 4 kB / 484 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.614e-06/0.1179, allocations: 7.984 kB / 484 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002003/0.12, allocations: 1.009 MB / 485 MB, free: 15.82 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.717e-06/0.12, allocations: 0 / 485 MB, free: 15.82 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005173/0.1205, allocations: 87.88 kB / 485.1 MB, free: 15.73 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.846e-06/0.1205, allocations: 4.062 kB / 485.1 MB, free: 15.73 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.133e-05/0.1206, allocations: 15.94 kB / 485.1 MB, free: 15.71 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.741e-06/0.1206, allocations: 3.938 kB / 485.1 MB, free: 15.71 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/0.1206, allocations: 4 kB / 485.1 MB, free: 15.71 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001359/0.122, allocations: 0.7686 MB / 485.9 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.421e-05/0.122, allocations: 104.7 kB / 486 MB, free: 14.79 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.042e-05/0.1221, allocations: 8 kB / 486 MB, free: 14.79 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004282/0.1225, allocations: 31.97 kB / 486 MB, free: 14.75 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.332e-05/0.1226, allocations: 23.97 kB / 486.1 MB, free: 14.73 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.371e-05/0.1227, allocations: 8 kB / 486.1 MB, free: 14.72 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001697/0.1228, allocations: 156.5 kB / 486.2 MB, free: 14.57 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1229, allocations: 0 / 486.2 MB, free: 14.57 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007763/0.1236, allocations: 72 kB / 486.3 MB, free: 14.5 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.001621/0.1253, allocations: 1.301 MB / 487.6 MB, free: 13.16 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008477/0.1261, allocations: 308.2 kB / 487.9 MB, free: 12.86 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.1261, allocations: 0 / 487.9 MB, free: 12.86 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004035/0.1266, allocations: 148.1 kB / 488 MB, free: 12.71 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001065/0.1276, allocations: 36.42 kB / 488.1 MB, free: 12.68 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00449/0.1321, allocations: 3.768 MB / 491.8 MB, free: 8.672 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002596/0.1324, allocations: 0.7722 MB / 492.6 MB, free: 7.875 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001262/0.1325, allocations: 34.95 kB / 492.6 MB, free: 7.844 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000123/0.1327, allocations: 91.41 kB / 492.7 MB, free: 7.754 MB / 366.1 MB Notification: Performance of SimCode: time 4.11e-07/0.1327, allocations: 0 / 492.7 MB, free: 7.754 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5662/0.6989, allocations: 4.802 MB / 497.5 MB, free: 3.066 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002085/0.6992, allocations: 197.9 kB / 497.7 MB, free: 2.805 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.85/2.549, allocations: 4.062 kB / 497.7 MB, free: 2.801 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