Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001984/0.001984, allocations: 109.1 kB / 21.22 MB, free: 0.7539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002468/0.002468, allocations: 216.9 kB / 24.53 MB, free: 4.008 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.523/1.523, allocations: 230.5 MB / 258.2 MB, free: 8.008 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2449/0.2449, allocations: 46.92 MB / 361.6 MB, free: 4.211 MB / 286.1 MB " [Timeout remaining time 179] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Rotational.TestSpeed,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_TestSpeed",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.TestSpeed,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_TestSpeed",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002642/0.002642, allocations: 75.89 kB / 0.4969 GB, free: 7.812 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3358/0.3384, allocations: 66.09 MB / 0.5615 GB, free: 4.324 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestSpeed): time 0.004308/0.3427, allocations: 2.644 MB / 0.5641 GB, free: 1.672 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001736/0.3445, allocations: 0.7362 MB / 0.5648 GB, free: 0.9297 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002708/0.3448, allocations: 11.88 kB / 0.5648 GB, free: 0.918 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002016/0.345, allocations: 47.52 kB / 0.5648 GB, free: 0.8711 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000261/0.3452, allocations: 87.2 kB / 0.5649 GB, free: 0.7852 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004231/0.3456, allocations: 99.8 kB / 0.565 GB, free: 0.6875 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004837/0.3461, allocations: 334.5 kB / 0.5653 GB, free: 368 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002103/0.3463, allocations: 63.89 kB / 0.5654 GB, free: 296 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003107/0.3466, allocations: 147.5 kB / 0.5655 GB, free: 148 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000213/0.3469, allocations: 131.4 kB / 0.5657 GB, free: 16 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.138e-05/0.3469, allocations: 24.05 kB / 0.5657 GB, free: 15.99 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.389e-05/0.347, allocations: 27.94 kB / 0.5657 GB, free: 15.96 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 5.449e-05/0.3471, allocations: 55.73 kB / 0.5658 GB, free: 15.91 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001625/0.3472, allocations: 151.2 kB / 0.5659 GB, free: 15.76 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005087/0.3477, allocations: 310.5 kB / 0.5662 GB, free: 15.46 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.49e-06/0.3477, allocations: 0 / 0.5662 GB, free: 15.46 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.3477, allocations: 0 / 0.5662 GB, free: 15.46 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.1e-05/0.3477, allocations: 0 / 0.5662 GB, free: 15.46 MB / 414.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.0009838/0.3487, allocations: 0.5246 MB / 0.5667 GB, free: 14.9 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.153e-05/0.3488, allocations: 8.031 kB / 0.5667 GB, free: 14.89 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.419e-05/0.3488, allocations: 12.62 kB / 0.5667 GB, free: 14.88 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.043e-05/0.3489, allocations: 58.72 kB / 0.5668 GB, free: 14.82 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002441/0.3491, allocations: 56.73 kB / 0.5669 GB, free: 14.76 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004263/0.3495, allocations: 210 kB / 0.5671 GB, free: 14.53 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.672e-05/0.3496, allocations: 20.88 kB / 0.5671 GB, free: 14.51 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.73e-05/0.3496, allocations: 32.31 kB / 0.5671 GB, free: 14.48 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005262/0.3501, allocations: 281.1 kB / 0.5674 GB, free: 14.18 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.756e-05/0.3502, allocations: 11.89 kB / 0.5674 GB, free: 14.17 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.819e-05/0.3502, allocations: 12 kB / 0.5674 GB, free: 14.16 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.849e-06/0.3502, allocations: 4 kB / 0.5674 GB, free: 14.15 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004539/0.3507, allocations: 191.7 kB / 0.5676 GB, free: 13.96 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001884/0.3525, allocations: 1.234 MB / 0.5688 GB, free: 12.64 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004675/0.353, allocations: 246.5 kB / 0.569 GB, free: 12.36 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000205/0.3532, allocations: 91.39 kB / 0.5691 GB, free: 12.26 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.552e-05/0.3532, allocations: 4 kB / 0.5691 GB, free: 12.26 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.856e-05/0.3533, allocations: 38.56 kB / 0.5692 GB, free: 12.21 MB / 414.1 MB Notification: Performance of pre-optimization done (n=26): time 2.605e-06/0.3533, allocations: 0 / 0.5692 GB, free: 12.21 MB / 414.1 MB Notification: Performance of matching and sorting (n=32): time 0.002695/0.356, allocations: 1.202 MB / 0.5703 GB, free: 10.89 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.875e-05/0.3561, allocations: 140.5 kB / 0.5705 GB, free: 10.73 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002651/0.3563, allocations: 236.9 kB / 0.5707 GB, free: 10.48 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.105e-05/0.3564, allocations: 29.7 kB / 0.5707 GB, free: 10.45 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001421/0.3565, allocations: 176.6 kB / 0.5709 GB, free: 10.27 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.816e-05/0.3566, allocations: 119 kB / 0.571 GB, free: 10.15 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001181/0.3567, allocations: 74.12 kB / 0.5711 GB, free: 10.07 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001579/0.3569, allocations: 334.8 kB / 0.5714 GB, free: 9.738 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002539/0.3571, allocations: 104.8 kB / 0.5715 GB, free: 9.637 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003725/0.3575, allocations: 241.4 kB / 0.5717 GB, free: 9.344 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006488/0.3582, allocations: 364.9 kB / 0.5721 GB, free: 8.926 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.531e-05/0.3582, allocations: 7.938 kB / 0.5721 GB, free: 8.918 MB / 414.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0008283/0.359, allocations: 389.3 kB / 0.5724 GB, free: 8.531 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.226e-05/0.359, allocations: 12.03 kB / 0.5725 GB, free: 8.52 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.143e-05/0.3591, allocations: 4 kB / 0.5725 GB, free: 8.516 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.173e-05/0.3591, allocations: 8 kB / 0.5725 GB, free: 8.508 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004224/0.3595, allocations: 99.81 kB / 0.5726 GB, free: 8.41 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.468e-05/0.3595, allocations: 8 kB / 0.5726 GB, free: 8.402 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002289/0.3597, allocations: 27.92 kB / 0.5726 GB, free: 8.375 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.015e-05/0.3598, allocations: 19.98 kB / 0.5726 GB, free: 8.355 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.0001968/0.36, allocations: 163 kB / 0.5728 GB, free: 8.188 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001069/0.3601, allocations: 28.05 kB / 0.5728 GB, free: 8.16 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.766e-05/0.3602, allocations: 41.97 kB / 0.5728 GB, free: 8.117 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.871e-06/0.3602, allocations: 4 kB / 0.5728 GB, free: 8.113 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.386e-06/0.3602, allocations: 0 / 0.5728 GB, free: 8.113 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.07e-06/0.3602, allocations: 3.938 kB / 0.5728 GB, free: 8.109 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001645/0.3618, allocations: 0.9618 MB / 0.5738 GB, free: 7.09 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.486e-06/0.3618, allocations: 0 / 0.5738 GB, free: 7.09 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003761/0.3622, allocations: 79.88 kB / 0.5739 GB, free: 7.012 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.225e-06/0.3622, allocations: 8 kB / 0.5739 GB, free: 7.004 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.576e-05/0.3622, allocations: 8 kB / 0.5739 GB, free: 6.996 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.394e-06/0.3623, allocations: 4 kB / 0.5739 GB, free: 6.992 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.3623, allocations: 0 / 0.5739 GB, free: 6.992 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001125/0.3634, allocations: 0.7334 MB / 0.5746 GB, free: 6.234 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.098e-05/0.3634, allocations: 31.75 kB / 0.5746 GB, free: 6.203 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.964e-05/0.3635, allocations: 12 kB / 0.5746 GB, free: 6.191 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002926/0.3638, allocations: 23.97 kB / 0.5747 GB, free: 6.168 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.427e-05/0.3639, allocations: 23.95 kB / 0.5747 GB, free: 6.145 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.918e-05/0.3639, allocations: 12 kB / 0.5747 GB, free: 6.133 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001605/0.3641, allocations: 160.5 kB / 0.5748 GB, free: 5.973 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3641, allocations: 3.938 kB / 0.5748 GB, free: 5.969 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005219/0.3646, allocations: 68 kB / 0.5749 GB, free: 5.902 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.001395/0.366, allocations: 1.275 MB / 0.5762 GB, free: 4.594 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0007062/0.3667, allocations: 272.3 kB / 0.5764 GB, free: 4.328 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.115e-06/0.3667, allocations: 0 / 0.5764 GB, free: 4.328 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003125/0.367, allocations: 119.8 kB / 0.5765 GB, free: 4.211 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006937/0.3677, allocations: 42.81 kB / 0.5766 GB, free: 4.172 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005275/0.373, allocations: 3.526 MB / 0.58 GB, free: 428 kB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004807/0.3735, allocations: 0.772 MB / 0.5808 GB, free: 15.62 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0001709/0.3736, allocations: 34.95 kB / 0.5808 GB, free: 15.59 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001757/0.3738, allocations: 95.39 kB / 0.5809 GB, free: 15.49 MB / 430.1 MB Notification: Performance of SimCode: time 1.032e-06/0.3738, allocations: 0 / 0.5809 GB, free: 15.49 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02865/0.4025, allocations: 5.778 MB / 0.5865 GB, free: 9.844 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.87/12.28, allocations: 4.062 kB / 0.5865 GB, free: 9.84 MB / 430.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Rotational_TestSpeed_fmu --startTime=0 --stopTime=1.1 --stepSize=0.000219824 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Rotational_TestSpeed.fmu > ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Rotational/TestSpeed/TestSpeed.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_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.680693792004604]