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.001671/0.001671, allocations: 105.1 kB / 21.22 MB, free: 0.6289 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.001508/0.001508, allocations: 216.8 kB / 24.52 MB, free: 3.91 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.448/1.448, allocations: 230.6 MB / 258.3 MB, free: 7.785 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.2616/0.2616, allocations: 46.96 MB / 361.7 MB, free: 4.133 MB / 286.1 MB " [Timeout remaining time 179] 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.001995/0.001995, allocations: 67.91 kB / 0.4969 GB, free: 7.758 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3048/0.3068, allocations: 66.03 MB / 0.5613 GB, free: 4.258 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestSpeed): time 0.00423/0.3111, allocations: 2.473 MB / 0.5637 GB, free: 1.773 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001341/0.3124, allocations: 0.6973 MB / 0.5644 GB, free: 1.07 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001308/0.3125, allocations: 7.938 kB / 0.5644 GB, free: 1.062 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000152/0.3127, allocations: 47.52 kB / 0.5645 GB, free: 1.016 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000177/0.3129, allocations: 87.2 kB / 0.5646 GB, free: 0.9297 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003147/0.3132, allocations: 107.8 kB / 0.5647 GB, free: 0.8242 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004027/0.3136, allocations: 334.5 kB / 0.565 GB, free: 0.4961 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001742/0.3138, allocations: 64.03 kB / 0.565 GB, free: 436 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000239/0.314, allocations: 143.5 kB / 0.5652 GB, free: 292 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001968/0.3142, allocations: 139.3 kB / 0.5653 GB, free: 152 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.253e-05/0.3142, allocations: 20 kB / 0.5653 GB, free: 132 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.771e-05/0.3143, allocations: 24 kB / 0.5654 GB, free: 108 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 5.369e-05/0.3144, allocations: 51.78 kB / 0.5654 GB, free: 56 kB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001463/0.3145, allocations: 123.5 kB / 0.5655 GB, free: 15.93 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004055/0.3149, allocations: 314.6 kB / 0.5658 GB, free: 15.62 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.3149, allocations: 3.938 kB / 0.5658 GB, free: 15.62 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.3149, allocations: 0 / 0.5658 GB, free: 15.62 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.492e-06/0.3149, allocations: 0 / 0.5658 GB, free: 15.62 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.0009597/0.3159, allocations: 0.5207 MB / 0.5663 GB, free: 15.07 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.647e-05/0.3159, allocations: 15.97 kB / 0.5664 GB, free: 15.05 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.369e-05/0.316, allocations: 8.688 kB / 0.5664 GB, free: 15.05 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.2e-05/0.316, allocations: 62.72 kB / 0.5664 GB, free: 14.98 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002378/0.3163, allocations: 48.73 kB / 0.5665 GB, free: 14.93 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003727/0.3166, allocations: 213.9 kB / 0.5667 GB, free: 14.7 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.199e-05/0.3167, allocations: 20.88 kB / 0.5667 GB, free: 14.68 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.445e-05/0.3167, allocations: 32.33 kB / 0.5667 GB, free: 14.64 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005264/0.3172, allocations: 281 kB / 0.567 GB, free: 14.34 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.324e-05/0.3173, allocations: 7.953 kB / 0.567 GB, free: 14.34 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.32e-05/0.3173, allocations: 8 kB / 0.567 GB, free: 14.33 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.027e-05/0.3173, allocations: 8 kB / 0.567 GB, free: 14.32 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004324/0.3177, allocations: 187.8 kB / 0.5672 GB, free: 14.14 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001709/0.3194, allocations: 1.192 MB / 0.5684 GB, free: 12.86 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004304/0.3199, allocations: 234.3 kB / 0.5686 GB, free: 12.59 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002105/0.3201, allocations: 103.3 kB / 0.5687 GB, free: 12.48 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.876e-05/0.3201, allocations: 4.125 kB / 0.5687 GB, free: 12.47 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.125e-05/0.3201, allocations: 38.56 kB / 0.5687 GB, free: 12.43 MB / 414.1 MB Notification: Performance of pre-optimization done (n=26): time 1.643e-06/0.3201, allocations: 0 / 0.5687 GB, free: 12.43 MB / 414.1 MB Notification: Performance of matching and sorting (n=32): time 0.002531/0.3227, allocations: 1.209 MB / 0.5699 GB, free: 11.1 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.804e-05/0.3228, allocations: 132.5 kB / 0.57 GB, free: 10.94 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002582/0.323, allocations: 233 kB / 0.5702 GB, free: 10.7 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.633e-05/0.323, allocations: 33.7 kB / 0.5703 GB, free: 10.66 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000121/0.3232, allocations: 176.6 kB / 0.5704 GB, free: 10.48 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001067/0.3233, allocations: 126.9 kB / 0.5706 GB, free: 10.36 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001067/0.3234, allocations: 67.36 kB / 0.5706 GB, free: 10.29 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001699/0.3236, allocations: 342.8 kB / 0.571 GB, free: 9.945 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002459/0.3238, allocations: 96.81 kB / 0.5711 GB, free: 9.852 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003502/0.3242, allocations: 241.4 kB / 0.5713 GB, free: 9.559 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006338/0.3248, allocations: 373 kB / 0.5716 GB, free: 9.133 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.161e-06/0.3248, allocations: 7.938 kB / 0.5716 GB, free: 9.125 MB / 414.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.000767/0.3256, allocations: 397.6 kB / 0.572 GB, free: 8.73 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.626e-05/0.3256, allocations: 4 kB / 0.572 GB, free: 8.727 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.095e-05/0.3256, allocations: 8 kB / 0.572 GB, free: 8.719 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.821e-05/0.3256, allocations: 4 kB / 0.572 GB, free: 8.715 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003838/0.326, allocations: 96.28 kB / 0.5721 GB, free: 8.621 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.195e-05/0.326, allocations: 15.94 kB / 0.5721 GB, free: 8.605 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002104/0.3262, allocations: 31.91 kB / 0.5722 GB, free: 8.574 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.085e-05/0.3262, allocations: 20.08 kB / 0.5722 GB, free: 8.555 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.0001592/0.3264, allocations: 149.7 kB / 0.5723 GB, free: 8.398 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001139/0.3265, allocations: 31.81 kB / 0.5724 GB, free: 8.367 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.424e-05/0.3266, allocations: 33.7 kB / 0.5724 GB, free: 8.332 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.65e-06/0.3266, allocations: 4 kB / 0.5724 GB, free: 8.328 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.3266, allocations: 4 kB / 0.5724 GB, free: 8.324 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.3266, allocations: 0 / 0.5724 GB, free: 8.324 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001548/0.3282, allocations: 0.9184 MB / 0.5733 GB, free: 7.348 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.35e-06/0.3282, allocations: 7.938 kB / 0.5733 GB, free: 7.34 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00037/0.3285, allocations: 79.95 kB / 0.5734 GB, free: 7.262 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.005e-05/0.3285, allocations: 7.938 kB / 0.5734 GB, free: 7.254 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.531e-05/0.3286, allocations: 11.98 kB / 0.5734 GB, free: 7.242 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.161e-06/0.3286, allocations: 7.922 kB / 0.5734 GB, free: 7.234 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.777e-06/0.3286, allocations: 4 kB / 0.5734 GB, free: 7.23 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001038/0.3296, allocations: 0.7382 MB / 0.5741 GB, free: 6.469 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.69e-05/0.3297, allocations: 24 kB / 0.5742 GB, free: 6.445 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.012e-05/0.3297, allocations: 19.94 kB / 0.5742 GB, free: 6.426 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002842/0.33, allocations: 15.98 kB / 0.5742 GB, free: 6.41 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.45e-05/0.3301, allocations: 28.19 kB / 0.5742 GB, free: 6.383 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.012e-05/0.3301, allocations: 11.98 kB / 0.5742 GB, free: 6.371 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001514/0.3302, allocations: 160.5 kB / 0.5744 GB, free: 6.211 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3302, allocations: 0 / 0.5744 GB, free: 6.211 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005004/0.3307, allocations: 64 kB / 0.5745 GB, free: 6.148 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.001267/0.332, allocations: 1.282 MB / 0.5757 GB, free: 4.832 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0006327/0.3326, allocations: 263.7 kB / 0.576 GB, free: 4.574 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.3326, allocations: 0 / 0.576 GB, free: 4.574 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000281/0.3329, allocations: 128.7 kB / 0.5761 GB, free: 4.449 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006413/0.3336, allocations: 46.89 kB / 0.5761 GB, free: 4.41 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004765/0.3383, allocations: 3.522 MB / 0.5796 GB, free: 0.6641 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001834/0.3385, allocations: 164.1 kB / 0.5797 GB, free: 500 kB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001692/0.3387, allocations: 34.95 kB / 0.5798 GB, free: 464 kB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000161/0.3388, allocations: 99.39 kB / 0.5798 GB, free: 364 kB / 414.1 MB Notification: Performance of SimCode: time 8.81e-07/0.3388, allocations: 0 / 0.5798 GB, free: 364 kB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02867/0.3675, allocations: 5.742 MB / 0.5855 GB, free: 10.79 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.88/12.25, allocations: 3.938 kB / 0.5855 GB, free: 10.78 MB / 430.1 MB " [Timeout remaining time 648] (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.5039304230595]