Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.001616/0.001616, allocations: 112.2 kB / 21.22 MB, free: 0.75 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.001463/0.001463, allocations: 205.2 kB / 24.52 MB, free: 4.156 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.53/1.53, allocations: 230.6 MB / 258.3 MB, free: 8.027 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2407/0.2407, allocations: 46.93 MB / 361.6 MB, free: 4.367 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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_1_0_ModelicaTest_Rotational_TestSpeed",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.TestSpeed,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Rotational_TestSpeed",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002199/0.002199, allocations: 71.89 kB / 0.4969 GB, free: 7.938 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3657/0.3679, allocations: 66.03 MB / 0.5614 GB, free: 4.488 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestSpeed): time 0.004135/0.372, allocations: 2.649 MB / 0.564 GB, free: 1.824 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001406/0.3734, allocations: 0.7401 MB / 0.5647 GB, free: 1.078 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001655/0.3736, allocations: 11.88 kB / 0.5647 GB, free: 1.066 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001655/0.3737, allocations: 43.52 kB / 0.5648 GB, free: 1.023 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001914/0.3739, allocations: 87.2 kB / 0.5648 GB, free: 0.9375 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003407/0.3743, allocations: 103.8 kB / 0.5649 GB, free: 0.8359 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004002/0.3747, allocations: 334.5 kB / 0.5653 GB, free: 0.5078 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001799/0.3749, allocations: 63.88 kB / 0.5653 GB, free: 448 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002675/0.3751, allocations: 143.5 kB / 0.5655 GB, free: 304 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001944/0.3753, allocations: 131.4 kB / 0.5656 GB, free: 172 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.12e-05/0.3754, allocations: 27.94 kB / 0.5656 GB, free: 144 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.511e-05/0.3754, allocations: 24 kB / 0.5656 GB, free: 120 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 5.157e-05/0.3755, allocations: 59.83 kB / 0.5657 GB, free: 60 kB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000157/0.3756, allocations: 147.3 kB / 0.5658 GB, free: 15.91 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004041/0.376, allocations: 310.5 kB / 0.5661 GB, free: 15.61 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.599e-06/0.3761, allocations: 0 / 0.5661 GB, free: 15.61 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.3761, allocations: 0 / 0.5661 GB, free: 15.61 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.147e-05/0.3761, allocations: 0 / 0.5661 GB, free: 15.61 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.0009461/0.377, allocations: 0.5268 MB / 0.5666 GB, free: 15.05 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.345e-05/0.3771, allocations: 8.031 kB / 0.5667 GB, free: 15.05 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.992e-05/0.3771, allocations: 12.69 kB / 0.5667 GB, free: 15.04 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.689e-05/0.3771, allocations: 58.72 kB / 0.5667 GB, free: 14.97 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002517/0.3774, allocations: 48.73 kB / 0.5668 GB, free: 14.92 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004111/0.3778, allocations: 221.9 kB / 0.567 GB, free: 14.68 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.171e-05/0.3778, allocations: 16.88 kB / 0.567 GB, free: 14.66 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.864e-05/0.3779, allocations: 32.33 kB / 0.567 GB, free: 14.63 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005729/0.3785, allocations: 285 kB / 0.5673 GB, free: 14.33 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.314e-05/0.3785, allocations: 11.89 kB / 0.5673 GB, free: 14.32 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.235e-05/0.3785, allocations: 12 kB / 0.5673 GB, free: 14.3 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.21e-05/0.3785, allocations: 4 kB / 0.5673 GB, free: 14.3 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004511/0.379, allocations: 183.8 kB / 0.5675 GB, free: 14.12 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001771/0.3807, allocations: 1.242 MB / 0.5687 GB, free: 12.79 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004653/0.3812, allocations: 230.4 kB / 0.5689 GB, free: 12.53 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002225/0.3814, allocations: 103.5 kB / 0.569 GB, free: 12.41 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.283e-05/0.3815, allocations: 0 / 0.569 GB, free: 12.41 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.473e-05/0.3815, allocations: 38.56 kB / 0.5691 GB, free: 12.37 MB / 414.1 MB Notification: Performance of pre-optimization done (n=26): time 1.102e-06/0.3815, allocations: 0 / 0.5691 GB, free: 12.37 MB / 414.1 MB Notification: Performance of matching and sorting (n=32): time 0.002508/0.384, allocations: 1.206 MB / 0.5702 GB, free: 11.05 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.308e-05/0.3841, allocations: 136.5 kB / 0.5704 GB, free: 10.88 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002611/0.3843, allocations: 236.9 kB / 0.5706 GB, free: 10.64 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.14e-05/0.3844, allocations: 29.7 kB / 0.5706 GB, free: 10.6 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001278/0.3845, allocations: 180.6 kB / 0.5708 GB, free: 10.42 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001036/0.3846, allocations: 119 kB / 0.5709 GB, free: 10.3 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001101/0.3847, allocations: 70.12 kB / 0.571 GB, free: 10.23 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001629/0.3849, allocations: 338.8 kB / 0.5713 GB, free: 9.891 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002687/0.3851, allocations: 100.8 kB / 0.5714 GB, free: 9.793 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003698/0.3855, allocations: 241.4 kB / 0.5716 GB, free: 9.5 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006556/0.3862, allocations: 365.5 kB / 0.572 GB, free: 9.082 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.269e-06/0.3862, allocations: 7.938 kB / 0.572 GB, free: 9.074 MB / 414.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0008001/0.387, allocations: 401.4 kB / 0.5724 GB, free: 8.676 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.07e-05/0.387, allocations: 8 kB / 0.5724 GB, free: 8.668 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.124e-05/0.387, allocations: 7.984 kB / 0.5724 GB, free: 8.66 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.82e-05/0.387, allocations: 4 kB / 0.5724 GB, free: 8.656 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000396/0.3874, allocations: 104.2 kB / 0.5725 GB, free: 8.555 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.805e-05/0.3874, allocations: 12 kB / 0.5725 GB, free: 8.543 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002078/0.3877, allocations: 28.23 kB / 0.5725 GB, free: 8.516 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.178e-05/0.3877, allocations: 19.98 kB / 0.5725 GB, free: 8.496 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.0001587/0.3878, allocations: 153.7 kB / 0.5727 GB, free: 8.336 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001111/0.388, allocations: 31.81 kB / 0.5727 GB, free: 8.305 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.896e-05/0.388, allocations: 33.7 kB / 0.5728 GB, free: 8.27 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.414e-06/0.388, allocations: 8 kB / 0.5728 GB, free: 8.262 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.292e-06/0.388, allocations: 8 kB / 0.5728 GB, free: 8.254 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.378e-06/0.3881, allocations: 0 / 0.5728 GB, free: 8.254 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001549/0.3896, allocations: 0.95 MB / 0.5737 GB, free: 7.246 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.639e-06/0.3896, allocations: 4.094 kB / 0.5737 GB, free: 7.242 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003566/0.39, allocations: 79.81 kB / 0.5738 GB, free: 7.164 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.378e-06/0.39, allocations: 7.938 kB / 0.5738 GB, free: 7.156 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.445e-05/0.39, allocations: 8 kB / 0.5738 GB, free: 7.148 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.001e-05/0.39, allocations: 4 kB / 0.5738 GB, free: 7.145 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/0.39, allocations: 0 / 0.5738 GB, free: 7.145 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001084/0.3911, allocations: 0.7417 MB / 0.5745 GB, free: 6.379 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.274e-05/0.3911, allocations: 23.81 kB / 0.5745 GB, free: 6.355 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.804e-05/0.3912, allocations: 12 kB / 0.5746 GB, free: 6.344 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002843/0.3915, allocations: 23.97 kB / 0.5746 GB, free: 6.32 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.472e-05/0.3916, allocations: 23.95 kB / 0.5746 GB, free: 6.297 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.271e-05/0.3916, allocations: 16 kB / 0.5746 GB, free: 6.281 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.000159/0.3917, allocations: 160.5 kB / 0.5748 GB, free: 6.121 MB / 414.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.3917, allocations: 0 / 0.5748 GB, free: 6.121 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004851/0.3922, allocations: 68 kB / 0.5748 GB, free: 6.055 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.00138/0.3936, allocations: 1.278 MB / 0.5761 GB, free: 4.742 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00065/0.3942, allocations: 263.6 kB / 0.5763 GB, free: 4.484 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.3943, allocations: 0.8125 kB / 0.5763 GB, free: 4.484 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002822/0.3945, allocations: 124.3 kB / 0.5765 GB, free: 4.363 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000669/0.3952, allocations: 45.22 kB / 0.5765 GB, free: 4.32 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004822/0.4, allocations: 3.521 MB / 0.5799 GB, free: 0.5742 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004495/0.4005, allocations: 0.772 MB / 0.5807 GB, free: 15.78 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0001352/0.4006, allocations: 34.95 kB / 0.5807 GB, free: 15.74 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001746/0.4008, allocations: 99.39 kB / 0.5808 GB, free: 15.64 MB / 430.1 MB Notification: Performance of SimCode: time 8.42e-07/0.4008, allocations: 0 / 0.5808 GB, free: 15.64 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02781/0.4286, allocations: 5.766 MB / 0.5864 GB, free: 10.04 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.97/12.39, allocations: 13.38 kB / 0.5865 GB, free: 10.03 MB / 430.1 MB " [Timeout remaining time 647] (rm -f ModelicaTest_4.1.0_ModelicaTest.Rotational.TestSpeed.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Rotational.TestSpeed.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Rotational.TestSpeed.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Rotational.TestSpeed.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Rotational.TestSpeed_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Rotational_TestSpeed_fmu --startTime=0 --stopTime=1.1 --stepSize=0.000219824 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Rotational_TestSpeed.fmu > ModelicaTest_4.1.0_ModelicaTest.Rotational.TestSpeed.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_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_4.1.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.66270155197708]