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.001386/0.001386, allocations: 110 kB / 20.43 MB, free: 1.453 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.001484/0.001484, allocations: 213.1 kB / 23.74 MB, free: 4.66 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.501/1.501, allocations: 230.5 MB / 257.4 MB, free: 8.012 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.2286/0.2286, allocations: 46.92 MB / 360.8 MB, free: 4.172 MB / 286.1 MB " [Timeout remaining time 180] 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.TestSpeed,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_TestSpeed",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00237/0.00237, allocations: 79.88 kB / 0.4962 GB, free: 7.773 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3618/0.3641, allocations: 66.09 MB / 0.5607 GB, free: 4.316 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestSpeed): time 0.004253/0.3684, allocations: 2.649 MB / 0.5633 GB, free: 1.656 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001746/0.3701, allocations: 0.7401 MB / 0.564 GB, free: 0.9102 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002295/0.3704, allocations: 7.938 kB / 0.564 GB, free: 0.9023 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001968/0.3706, allocations: 47.52 kB / 0.5641 GB, free: 0.8555 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002348/0.3708, allocations: 91.2 kB / 0.5642 GB, free: 0.7656 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003969/0.3712, allocations: 103.8 kB / 0.5643 GB, free: 0.6641 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004781/0.3717, allocations: 334.5 kB / 0.5646 GB, free: 344 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002062/0.3719, allocations: 63.89 kB / 0.5646 GB, free: 272 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003098/0.3722, allocations: 143.5 kB / 0.5648 GB, free: 128 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002247/0.3724, allocations: 135.4 kB / 0.5649 GB, free: 15.99 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 4.265e-05/0.3725, allocations: 27.94 kB / 0.5649 GB, free: 15.96 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.154e-05/0.3725, allocations: 24 kB / 0.565 GB, free: 15.94 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 5.884e-05/0.3726, allocations: 51.84 kB / 0.565 GB, free: 15.89 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001525/0.3728, allocations: 147.2 kB / 0.5651 GB, free: 15.75 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004711/0.3732, allocations: 310.6 kB / 0.5654 GB, free: 15.44 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.681e-06/0.3732, allocations: 0 / 0.5654 GB, free: 15.44 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.3732, allocations: 0 / 0.5654 GB, free: 15.44 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.704e-06/0.3732, allocations: 0 / 0.5654 GB, free: 15.44 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.001058/0.3743, allocations: 0.5245 MB / 0.566 GB, free: 14.89 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.038e-05/0.3744, allocations: 8.031 kB / 0.566 GB, free: 14.88 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.171e-05/0.3744, allocations: 62.72 kB / 0.566 GB, free: 14.81 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00026/0.3747, allocations: 48.73 kB / 0.5661 GB, free: 14.76 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005041/0.3752, allocations: 221.9 kB / 0.5663 GB, free: 14.52 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.655e-05/0.3752, allocations: 16.88 kB / 0.5663 GB, free: 14.5 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.505e-05/0.3753, allocations: 36.33 kB / 0.5663 GB, free: 14.47 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005429/0.3758, allocations: 273.3 kB / 0.5666 GB, free: 14.18 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.768e-05/0.3759, allocations: 19.83 kB / 0.5666 GB, free: 14.16 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.738e-05/0.3759, allocations: 8 kB / 0.5666 GB, free: 14.15 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.077e-06/0.3759, allocations: 8 kB / 0.5666 GB, free: 14.14 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004552/0.3763, allocations: 183.7 kB / 0.5668 GB, free: 13.96 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00185/0.3782, allocations: 1.242 MB / 0.568 GB, free: 12.63 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000458/0.3787, allocations: 234.3 kB / 0.5682 GB, free: 12.36 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002196/0.3789, allocations: 95.39 kB / 0.5683 GB, free: 12.26 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.389e-05/0.3789, allocations: 4 kB / 0.5683 GB, free: 12.25 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.631e-05/0.379, allocations: 42.69 kB / 0.5684 GB, free: 12.2 MB / 414.1 MB Notification: Performance of pre-optimization done (n=26): time 1.904e-06/0.379, allocations: 0 / 0.5684 GB, free: 12.2 MB / 414.1 MB Notification: Performance of matching and sorting (n=32): time 0.002665/0.3816, allocations: 1.201 MB / 0.5695 GB, free: 10.89 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.93e-05/0.3817, allocations: 137.7 kB / 0.5697 GB, free: 10.72 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002546/0.382, allocations: 228.9 kB / 0.5699 GB, free: 10.48 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.187e-05/0.382, allocations: 37.7 kB / 0.5699 GB, free: 10.44 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001685/0.3822, allocations: 176.6 kB / 0.5701 GB, free: 10.27 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001031/0.3823, allocations: 123 kB / 0.5702 GB, free: 10.14 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001184/0.3824, allocations: 66.12 kB / 0.5703 GB, free: 10.07 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.00016/0.3826, allocations: 338.8 kB / 0.5706 GB, free: 9.734 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002764/0.3828, allocations: 101.1 kB / 0.5707 GB, free: 9.637 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003728/0.3832, allocations: 249.4 kB / 0.5709 GB, free: 9.336 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006455/0.3839, allocations: 368.8 kB / 0.5713 GB, free: 8.914 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.23e-06/0.3839, allocations: 4 kB / 0.5713 GB, free: 8.91 MB / 414.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0008147/0.3847, allocations: 400.8 kB / 0.5717 GB, free: 8.512 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.378e-05/0.3847, allocations: 4 kB / 0.5717 GB, free: 8.508 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.305e-05/0.3847, allocations: 8 kB / 0.5717 GB, free: 8.5 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.192e-05/0.3847, allocations: 4 kB / 0.5717 GB, free: 8.496 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004213/0.3852, allocations: 100.3 kB / 0.5718 GB, free: 8.398 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.571e-05/0.3852, allocations: 15.94 kB / 0.5718 GB, free: 8.383 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002285/0.3854, allocations: 23.92 kB / 0.5718 GB, free: 8.359 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.002e-05/0.3854, allocations: 23.98 kB / 0.5719 GB, free: 8.336 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.0001752/0.3856, allocations: 151 kB / 0.572 GB, free: 8.18 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001143/0.3857, allocations: 32.05 kB / 0.572 GB, free: 8.148 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.055e-05/0.3858, allocations: 33.7 kB / 0.5721 GB, free: 8.113 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.705e-06/0.3858, allocations: 7.984 kB / 0.5721 GB, free: 8.105 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.778e-06/0.3858, allocations: 8 kB / 0.5721 GB, free: 8.098 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.388e-06/0.3858, allocations: 0 / 0.5721 GB, free: 8.098 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001642/0.3875, allocations: 0.9459 MB / 0.573 GB, free: 7.094 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.261e-06/0.3875, allocations: 4 kB / 0.573 GB, free: 7.09 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003797/0.3878, allocations: 76.17 kB / 0.5731 GB, free: 7.016 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.256e-06/0.3879, allocations: 4 kB / 0.5731 GB, free: 7.012 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.932e-05/0.3879, allocations: 15.92 kB / 0.5731 GB, free: 6.996 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.888e-06/0.3879, allocations: 3.938 kB / 0.5731 GB, free: 6.992 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.922e-06/0.3879, allocations: 7.938 kB / 0.5731 GB, free: 6.984 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001068/0.389, allocations: 0.7335 MB / 0.5738 GB, free: 6.227 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.775e-05/0.389, allocations: 27.75 kB / 0.5738 GB, free: 6.199 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.574e-05/0.3891, allocations: 12.25 kB / 0.5739 GB, free: 6.188 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002957/0.3894, allocations: 19.98 kB / 0.5739 GB, free: 6.168 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.911e-05/0.3895, allocations: 31.89 kB / 0.5739 GB, free: 6.137 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.224e-05/0.3895, allocations: 19.98 kB / 0.5739 GB, free: 6.117 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001576/0.3896, allocations: 156.5 kB / 0.5741 GB, free: 5.961 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3896, allocations: 0 / 0.5741 GB, free: 5.961 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005365/0.3902, allocations: 72 kB / 0.5741 GB, free: 5.891 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.001426/0.3916, allocations: 1.278 MB / 0.5754 GB, free: 4.578 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0007177/0.3923, allocations: 251.7 kB / 0.5756 GB, free: 4.332 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.068e-06/0.3923, allocations: 0.8125 kB / 0.5756 GB, free: 4.332 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003068/0.3926, allocations: 135.7 kB / 0.5758 GB, free: 4.199 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006882/0.3933, allocations: 39.58 kB / 0.5758 GB, free: 4.164 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005301/0.3986, allocations: 3.518 MB / 0.5792 GB, free: 428 kB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004452/0.3991, allocations: 0.7758 MB / 0.58 GB, free: 15.62 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0001643/0.3992, allocations: 34.95 kB / 0.58 GB, free: 15.58 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001595/0.3994, allocations: 99.39 kB / 0.5801 GB, free: 15.48 MB / 430.1 MB Notification: Performance of SimCode: time 1.182e-06/0.3994, allocations: 4 kB / 0.5801 GB, free: 15.48 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03626/0.4356, allocations: 5.739 MB / 0.5857 GB, free: 9.855 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.5/11.94, allocations: 3.438 kB / 0.5857 GB, free: 9.855 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 & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed_res.csv --start-time 0 --stop-time 1.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000219824 ModelicaTest_trunk_ModelicaTest_Rotational_TestSpeed.fmu > ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed_res.csv","/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] "Error: Could not read variable speed4.s in file ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed_res.csv. Warning: Get data of variable speed4.s from file ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.066745971002092]