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.001296/0.001296, allocations: 105.1 kB / 21.21 MB, free: 0.6523 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.001489/0.001489, allocations: 211.9 kB / 24.51 MB, free: 3.941 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.479/1.479, allocations: 230.6 MB / 258.3 MB, free: 7.965 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.2274/0.2274, allocations: 44.94 MB / 359.6 MB, free: 6.176 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.TestSpeed,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_TestSpeed",fmuType="cs",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.00199/0.00199, allocations: 63.91 kB / 0.4938 GB, free: 10.57 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3355/0.3375, allocations: 65.47 MB / 0.5577 GB, free: 7.355 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestSpeed): time 0.005492/0.3429, allocations: 2.463 MB / 0.5601 GB, free: 5.086 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001533/0.3445, allocations: 0.6973 MB / 0.5608 GB, free: 4.383 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000153/0.3446, allocations: 11.88 kB / 0.5608 GB, free: 4.371 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001761/0.3448, allocations: 43.58 kB / 0.5608 GB, free: 4.328 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000183/0.345, allocations: 87.2 kB / 0.5609 GB, free: 4.242 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003242/0.3453, allocations: 103.8 kB / 0.561 GB, free: 4.141 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004132/0.3457, allocations: 338.5 kB / 0.5614 GB, free: 3.809 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001756/0.3459, allocations: 64.03 kB / 0.5614 GB, free: 3.738 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002472/0.3462, allocations: 143.5 kB / 0.5615 GB, free: 3.598 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001846/0.3463, allocations: 131.4 kB / 0.5617 GB, free: 3.469 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.191e-05/0.3464, allocations: 20 kB / 0.5617 GB, free: 3.449 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.844e-05/0.3465, allocations: 27.98 kB / 0.5617 GB, free: 3.422 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.75e-05/0.3465, allocations: 51.78 kB / 0.5618 GB, free: 3.371 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001323/0.3467, allocations: 123.4 kB / 0.5619 GB, free: 3.25 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004132/0.3471, allocations: 322.5 kB / 0.5622 GB, free: 2.934 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.988e-06/0.3471, allocations: 3.938 kB / 0.5622 GB, free: 2.93 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.3471, allocations: 0 / 0.5622 GB, free: 2.93 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.562e-06/0.3471, allocations: 0 / 0.5622 GB, free: 2.93 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.0009485/0.348, allocations: 0.5207 MB / 0.5627 GB, free: 2.379 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.79e-05/0.3481, allocations: 8.031 kB / 0.5627 GB, free: 2.371 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.655e-05/0.3481, allocations: 12.69 kB / 0.5627 GB, free: 2.359 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.283e-05/0.3482, allocations: 62.72 kB / 0.5628 GB, free: 2.289 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002519/0.3484, allocations: 48.73 kB / 0.5628 GB, free: 2.242 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004188/0.3488, allocations: 217.8 kB / 0.563 GB, free: 2.004 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.183e-05/0.3489, allocations: 20.88 kB / 0.5631 GB, free: 1.984 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.068e-05/0.3489, allocations: 28.33 kB / 0.5631 GB, free: 1.957 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005264/0.3494, allocations: 285 kB / 0.5634 GB, free: 1.652 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.289e-05/0.3495, allocations: 7.953 kB / 0.5634 GB, free: 1.645 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.734e-05/0.3495, allocations: 12 kB / 0.5634 GB, free: 1.633 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.905e-06/0.3495, allocations: 4 kB / 0.5634 GB, free: 1.629 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004325/0.3499, allocations: 183.8 kB / 0.5636 GB, free: 1.449 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001728/0.3517, allocations: 1.203 MB / 0.5647 GB, free: 160 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004492/0.3521, allocations: 234.4 kB / 0.565 GB, free: 15.89 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002098/0.3523, allocations: 99.52 kB / 0.5651 GB, free: 15.78 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.353e-05/0.3523, allocations: 8 kB / 0.5651 GB, free: 15.77 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.356e-05/0.3524, allocations: 34.56 kB / 0.5651 GB, free: 15.73 MB / 414.1 MB Notification: Performance of pre-optimization done (n=26): time 1.523e-06/0.3524, allocations: 4 kB / 0.5651 GB, free: 15.72 MB / 414.1 MB Notification: Performance of matching and sorting (n=32): time 0.002533/0.3549, allocations: 1.206 MB / 0.5663 GB, free: 14.41 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.782e-05/0.355, allocations: 136.5 kB / 0.5664 GB, free: 14.24 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002328/0.3552, allocations: 229 kB / 0.5666 GB, free: 14 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.839e-05/0.3553, allocations: 37.64 kB / 0.5667 GB, free: 13.96 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001265/0.3554, allocations: 172.6 kB / 0.5668 GB, free: 13.79 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.775e-05/0.3555, allocations: 127 kB / 0.5669 GB, free: 13.66 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000114/0.3556, allocations: 74.06 kB / 0.567 GB, free: 13.59 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001576/0.3558, allocations: 338.8 kB / 0.5673 GB, free: 13.25 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002544/0.356, allocations: 100.8 kB / 0.5674 GB, free: 13.15 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000348/0.3564, allocations: 237.4 kB / 0.5677 GB, free: 12.86 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006391/0.357, allocations: 369 kB / 0.568 GB, free: 12.43 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.081e-06/0.357, allocations: 7.938 kB / 0.568 GB, free: 12.43 MB / 414.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0007771/0.3578, allocations: 397 kB / 0.5684 GB, free: 12.03 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.77e-05/0.3578, allocations: 8 kB / 0.5684 GB, free: 12.02 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.726e-06/0.3578, allocations: 4 kB / 0.5684 GB, free: 12.02 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.89e-05/0.3578, allocations: 4 kB / 0.5684 GB, free: 12.02 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004102/0.3582, allocations: 99.81 kB / 0.5685 GB, free: 11.92 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.655e-05/0.3583, allocations: 8 kB / 0.5685 GB, free: 11.91 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002257/0.3585, allocations: 32.23 kB / 0.5685 GB, free: 11.88 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.198e-05/0.3585, allocations: 23.98 kB / 0.5686 GB, free: 11.86 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.000156/0.3587, allocations: 149.7 kB / 0.5687 GB, free: 11.7 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001066/0.3588, allocations: 31.81 kB / 0.5687 GB, free: 11.67 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.468e-05/0.3588, allocations: 37.7 kB / 0.5688 GB, free: 11.63 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.04e-06/0.3589, allocations: 4 kB / 0.5688 GB, free: 11.62 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/0.3589, allocations: 192 / 0.5688 GB, free: 11.62 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.589e-06/0.3589, allocations: 0 / 0.5688 GB, free: 11.62 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001504/0.3604, allocations: 0.9343 MB / 0.5697 GB, free: 10.63 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.9e-06/0.3604, allocations: 4 kB / 0.5697 GB, free: 10.63 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003732/0.3607, allocations: 75.89 kB / 0.5698 GB, free: 10.55 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.227e-06/0.3608, allocations: 7.938 kB / 0.5698 GB, free: 10.55 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.269e-05/0.3608, allocations: 16.05 kB / 0.5698 GB, free: 10.53 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.332e-06/0.3608, allocations: 4 kB / 0.5698 GB, free: 10.53 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/0.3608, allocations: 0 / 0.5698 GB, free: 10.53 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00107/0.3619, allocations: 0.7261 MB / 0.5705 GB, free: 9.777 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.34e-05/0.3619, allocations: 27.81 kB / 0.5705 GB, free: 9.75 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.707e-05/0.362, allocations: 16 kB / 0.5705 GB, free: 9.734 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003057/0.3623, allocations: 19.98 kB / 0.5706 GB, free: 9.715 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.481e-05/0.3623, allocations: 23.95 kB / 0.5706 GB, free: 9.691 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.979e-05/0.3624, allocations: 15.92 kB / 0.5706 GB, free: 9.676 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001478/0.3625, allocations: 160.5 kB / 0.5708 GB, free: 9.52 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3625, allocations: 0 / 0.5708 GB, free: 9.52 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000495/0.363, allocations: 68 kB / 0.5708 GB, free: 9.453 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.001345/0.3644, allocations: 1.278 MB / 0.5721 GB, free: 8.141 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0006446/0.365, allocations: 272.2 kB / 0.5723 GB, free: 7.875 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.504e-06/0.365, allocations: 0 / 0.5723 GB, free: 7.875 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002863/0.3653, allocations: 123.8 kB / 0.5724 GB, free: 7.754 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006808/0.366, allocations: 44.53 kB / 0.5725 GB, free: 7.719 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005051/0.371, allocations: 3.528 MB / 0.5759 GB, free: 3.965 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001872/0.3712, allocations: 168.1 kB / 0.5761 GB, free: 3.785 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001377/0.3713, allocations: 30.97 kB / 0.5761 GB, free: 3.754 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001709/0.3715, allocations: 99.39 kB / 0.5762 GB, free: 3.656 MB / 414.1 MB Notification: Performance of SimCode: time 8.92e-07/0.3715, allocations: 4 kB / 0.5762 GB, free: 3.652 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02906/0.4006, allocations: 5.747 MB / 0.5818 GB, free: 14.07 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.87/12.27, allocations: 6.906 kB / 0.5818 GB, free: 14.07 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: 15.413274190039374]