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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.002227/0.002227, allocations: 111.1 kB / 20.44 MB, free: 1.184 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002534/0.002534, allocations: 209.2 kB / 23.73 MB, free: 4.387 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.456/1.456, allocations: 230.6 MB / 257.5 MB, free: 7.785 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2201/0.2201, allocations: 44.93 MB / 358.8 MB, free: 6.012 MB / 286.1 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002067/0.002067, allocations: 59.91 kB / 0.493 GB, free: 10.52 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.312/0.314, allocations: 65.48 MB / 0.5569 GB, free: 7.297 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestSpeed): time 0.004161/0.3182, allocations: 2.467 MB / 0.5594 GB, free: 5 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001643/0.3198, allocations: 0.7011 MB / 0.56 GB, free: 4.293 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001735/0.32, allocations: 7.938 kB / 0.5601 GB, free: 4.285 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001604/0.3202, allocations: 39.53 kB / 0.5601 GB, free: 4.246 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002026/0.3204, allocations: 95.2 kB / 0.5602 GB, free: 4.152 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003462/0.3207, allocations: 99.8 kB / 0.5603 GB, free: 4.055 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004284/0.3212, allocations: 334.5 kB / 0.5606 GB, free: 3.727 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001979/0.3214, allocations: 59.89 kB / 0.5607 GB, free: 3.66 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002537/0.3216, allocations: 139.5 kB / 0.5608 GB, free: 3.523 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000195/0.3218, allocations: 139.2 kB / 0.5609 GB, free: 3.387 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.044e-05/0.3218, allocations: 20 kB / 0.5609 GB, free: 3.367 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.859e-05/0.3219, allocations: 24 kB / 0.561 GB, free: 3.344 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 5.796e-05/0.322, allocations: 59.77 kB / 0.561 GB, free: 3.285 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001332/0.3221, allocations: 111.5 kB / 0.5611 GB, free: 3.176 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004522/0.3226, allocations: 314.6 kB / 0.5614 GB, free: 2.867 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.52e-06/0.3226, allocations: 0 / 0.5614 GB, free: 2.867 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.325e-06/0.3226, allocations: 0 / 0.5614 GB, free: 2.867 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.206e-06/0.3226, allocations: 0 / 0.5614 GB, free: 2.867 MB / 398.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.00104/0.3236, allocations: 0.5323 MB / 0.5619 GB, free: 2.305 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.614e-05/0.3237, allocations: 12.03 kB / 0.562 GB, free: 2.293 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.126e-05/0.3237, allocations: 54.73 kB / 0.562 GB, free: 2.23 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002471/0.324, allocations: 48.72 kB / 0.5621 GB, free: 2.184 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00046/0.3245, allocations: 229.9 kB / 0.5623 GB, free: 1.934 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.462e-05/0.3245, allocations: 16.88 kB / 0.5623 GB, free: 1.918 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.889e-05/0.3245, allocations: 32.33 kB / 0.5623 GB, free: 1.887 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000555/0.3251, allocations: 277.2 kB / 0.5626 GB, free: 1.59 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.43e-05/0.3251, allocations: 3.953 kB / 0.5626 GB, free: 1.586 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.618e-05/0.3251, allocations: 12 kB / 0.5626 GB, free: 1.574 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.14e-05/0.3252, allocations: 8 kB / 0.5626 GB, free: 1.566 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004357/0.3256, allocations: 187.7 kB / 0.5628 GB, free: 1.383 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001863/0.3275, allocations: 1.188 MB / 0.5639 GB, free: 108 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004617/0.3279, allocations: 242.5 kB / 0.5642 GB, free: 15.83 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002749/0.3282, allocations: 99.38 kB / 0.5643 GB, free: 15.72 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.994e-05/0.3282, allocations: 4 kB / 0.5643 GB, free: 15.72 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.323e-05/0.3283, allocations: 46.48 kB / 0.5643 GB, free: 15.66 MB / 414.1 MB Notification: Performance of pre-optimization done (n=26): time 1.774e-06/0.3283, allocations: 0 / 0.5643 GB, free: 15.66 MB / 414.1 MB Notification: Performance of matching and sorting (n=32): time 0.002601/0.3309, allocations: 1.206 MB / 0.5655 GB, free: 14.34 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.395e-05/0.3309, allocations: 136.5 kB / 0.5656 GB, free: 14.18 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002423/0.3312, allocations: 233 kB / 0.5658 GB, free: 13.94 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.912e-05/0.3312, allocations: 29.7 kB / 0.5659 GB, free: 13.9 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001292/0.3313, allocations: 180.5 kB / 0.566 GB, free: 13.72 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001007/0.3314, allocations: 119 kB / 0.5662 GB, free: 13.61 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001118/0.3316, allocations: 78.08 kB / 0.5662 GB, free: 13.52 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001637/0.3317, allocations: 334.8 kB / 0.5666 GB, free: 13.19 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000249/0.332, allocations: 96.81 kB / 0.5666 GB, free: 13.09 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003777/0.3324, allocations: 241.4 kB / 0.5669 GB, free: 12.8 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006761/0.333, allocations: 372.9 kB / 0.5672 GB, free: 12.37 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.333, allocations: 0 / 0.5672 GB, free: 12.37 MB / 414.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0008116/0.3338, allocations: 397.2 kB / 0.5676 GB, free: 11.98 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.289e-05/0.3339, allocations: 10.81 kB / 0.5676 GB, free: 11.97 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.057e-05/0.3339, allocations: 4.406 kB / 0.5676 GB, free: 11.96 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.608e-05/0.3339, allocations: 12 kB / 0.5676 GB, free: 11.95 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004046/0.3343, allocations: 104.3 kB / 0.5677 GB, free: 11.85 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.574e-05/0.3343, allocations: 11.94 kB / 0.5677 GB, free: 11.84 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002228/0.3345, allocations: 23.98 kB / 0.5678 GB, free: 11.82 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.674e-05/0.3346, allocations: 16 kB / 0.5678 GB, free: 11.8 MB / 414.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.0001667/0.3347, allocations: 157.7 kB / 0.5679 GB, free: 11.64 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001067/0.3348, allocations: 35.73 kB / 0.568 GB, free: 11.6 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.884e-05/0.3349, allocations: 33.72 kB / 0.568 GB, free: 11.57 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.37e-06/0.3349, allocations: 8 kB / 0.568 GB, free: 11.56 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.811e-06/0.3349, allocations: 0 / 0.568 GB, free: 11.56 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.513e-06/0.3349, allocations: 3.984 kB / 0.568 GB, free: 11.55 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001606/0.3365, allocations: 0.9188 MB / 0.5689 GB, free: 10.58 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.699e-06/0.3366, allocations: 8 kB / 0.5689 GB, free: 10.57 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003656/0.3369, allocations: 83.88 kB / 0.569 GB, free: 10.49 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.369e-06/0.3369, allocations: 0 / 0.569 GB, free: 10.49 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.567e-05/0.3369, allocations: 11.94 kB / 0.569 GB, free: 10.48 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.849e-06/0.337, allocations: 4 kB / 0.569 GB, free: 10.47 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.337, allocations: 0 / 0.569 GB, free: 10.47 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001157/0.3381, allocations: 0.7378 MB / 0.5697 GB, free: 9.711 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.456e-05/0.3382, allocations: 31.73 kB / 0.5698 GB, free: 9.68 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.559e-05/0.3382, allocations: 12 kB / 0.5698 GB, free: 9.668 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003064/0.3385, allocations: 19.98 kB / 0.5698 GB, free: 9.648 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001018/0.3386, allocations: 31.89 kB / 0.5698 GB, free: 9.617 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.032e-05/0.3387, allocations: 8 kB / 0.5698 GB, free: 9.609 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001989/0.3388, allocations: 160.5 kB / 0.57 GB, free: 9.453 MB / 414.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.3388, allocations: 4 kB / 0.57 GB, free: 9.449 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005393/0.3394, allocations: 68 kB / 0.5701 GB, free: 9.383 MB / 414.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.001525/0.3409, allocations: 1.27 MB / 0.5713 GB, free: 8.078 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0007495/0.3417, allocations: 267.5 kB / 0.5716 GB, free: 7.816 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.3417, allocations: 0.8125 kB / 0.5716 GB, free: 7.816 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00029/0.342, allocations: 123.9 kB / 0.5717 GB, free: 7.695 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007345/0.3427, allocations: 47.22 kB / 0.5717 GB, free: 7.652 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005056/0.3477, allocations: 3.509 MB / 0.5751 GB, free: 3.922 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001841/0.3479, allocations: 164 kB / 0.5753 GB, free: 3.746 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.000156/0.3481, allocations: 38.94 kB / 0.5753 GB, free: 3.707 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001672/0.3483, allocations: 95.41 kB / 0.5754 GB, free: 3.613 MB / 414.1 MB Notification: Performance of SimCode: time 1.744e-06/0.3483, allocations: 0 / 0.5754 GB, free: 3.613 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03491/0.3832, allocations: 6.013 MB / 0.5813 GB, free: 13.75 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.3/11.68, allocations: 3.047 kB / 0.5813 GB, free: 13.75 MB / 430.1 MB " [Timeout remaining time 648] (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 --stepSize=0.000219824 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Rotational_TestSpeed.fmu > ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.pipe 2>&1) [Timeout 52.5] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.619530572090298]