Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.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.001761/0.001761, allocations: 109.1 kB / 21.22 MB, free: 0.6484 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.002028/0.002028, allocations: 209.5 kB / 24.52 MB, free: 3.941 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.351/1.351, allocations: 230.5 MB / 258.2 MB, free: 7.801 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.2137/0.2137, allocations: 46.96 MB / 361.6 MB, free: 3.938 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.Blocks.SelfResettingIntegrator,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_SelfResettingIntegrator",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.SelfResettingIntegrator,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_SelfResettingIntegrator",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002115/0.002115, allocations: 79.88 kB / 0.4969 GB, free: 7.574 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2657/0.2678, allocations: 66.07 MB / 0.5614 GB, free: 4.055 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.001978/0.2698, allocations: 0.8113 MB / 0.5622 GB, free: 3.25 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001811/0.27, allocations: 47.81 kB / 0.5623 GB, free: 3.203 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.586e-05/0.27, allocations: 4 kB / 0.5623 GB, free: 3.199 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 9.748e-05/0.2701, allocations: 7.875 kB / 0.5623 GB, free: 3.191 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 1.416e-05/0.2701, allocations: 0 / 0.5623 GB, free: 3.191 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001005/0.2702, allocations: 27.92 kB / 0.5623 GB, free: 3.164 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001027/0.2704, allocations: 31.97 kB / 0.5623 GB, free: 3.133 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.343e-05/0.2704, allocations: 25.69 kB / 0.5624 GB, free: 3.109 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.418e-05/0.2705, allocations: 8 kB / 0.5624 GB, free: 3.102 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.909e-05/0.2705, allocations: 15.86 kB / 0.5624 GB, free: 3.086 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.68e-05/0.2705, allocations: 4 kB / 0.5624 GB, free: 3.082 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.02e-05/0.2705, allocations: 4 kB / 0.5624 GB, free: 3.078 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.676e-05/0.2706, allocations: 4 kB / 0.5624 GB, free: 3.074 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.974e-05/0.2706, allocations: 15.92 kB / 0.5624 GB, free: 3.059 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 9.589e-05/0.2707, allocations: 39.77 kB / 0.5624 GB, free: 3.02 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.487e-06/0.2707, allocations: 4 kB / 0.5624 GB, free: 3.016 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.133e-06/0.2707, allocations: 4 kB / 0.5625 GB, free: 3.012 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.087e-06/0.2707, allocations: 0 / 0.5625 GB, free: 3.012 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0003895/0.2711, allocations: 279.1 kB / 0.5627 GB, free: 2.703 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.337e-05/0.2711, allocations: 8.031 kB / 0.5627 GB, free: 2.695 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.757e-05/0.2711, allocations: 4.188 kB / 0.5627 GB, free: 2.691 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.633e-05/0.2712, allocations: 34.73 kB / 0.5628 GB, free: 2.648 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.634e-05/0.2712, allocations: 12.89 kB / 0.5628 GB, free: 2.637 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001664/0.2714, allocations: 118.5 kB / 0.5629 GB, free: 2.496 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.016e-05/0.2714, allocations: 4.375 kB / 0.5629 GB, free: 2.492 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.971e-05/0.2714, allocations: 12.36 kB / 0.5629 GB, free: 2.48 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000112/0.2715, allocations: 57.98 kB / 0.563 GB, free: 2.418 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.802e-06/0.2715, allocations: 0 / 0.563 GB, free: 2.418 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.123e-06/0.2715, allocations: 0 / 0.563 GB, free: 2.418 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.667e-06/0.2715, allocations: 3.938 kB / 0.563 GB, free: 2.414 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.038e-05/0.2716, allocations: 15.98 kB / 0.563 GB, free: 2.398 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004366/0.272, allocations: 251.8 kB / 0.5632 GB, free: 2.109 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.512e-05/0.272, allocations: 26.58 kB / 0.5632 GB, free: 2.074 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.617e-05/0.2721, allocations: 4.859 kB / 0.5632 GB, free: 2.066 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.095e-05/0.2721, allocations: 4 kB / 0.5633 GB, free: 2.062 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.092e-05/0.2722, allocations: 63.3 kB / 0.5633 GB, free: 1.988 MB / 398.1 MB Notification: Performance of pre-optimization done (n=3): time 1.093e-06/0.2722, allocations: 0 / 0.5633 GB, free: 1.988 MB / 398.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001312/0.2723, allocations: 53.69 kB / 0.5634 GB, free: 1.93 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.71e-05/0.2723, allocations: 51.41 kB / 0.5634 GB, free: 1.867 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.344e-05/0.2724, allocations: 121.8 kB / 0.5635 GB, free: 1.738 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.173e-05/0.2724, allocations: 25.7 kB / 0.5636 GB, free: 1.707 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.08e-05/0.2725, allocations: 92.09 kB / 0.5636 GB, free: 1.613 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.04e-05/0.2725, allocations: 3.953 kB / 0.5636 GB, free: 1.609 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.131e-05/0.2725, allocations: 17.72 kB / 0.5637 GB, free: 1.586 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001306/0.2727, allocations: 322.8 kB / 0.564 GB, free: 1.262 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.576e-05/0.2727, allocations: 8 kB / 0.564 GB, free: 1.254 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.484e-05/0.2727, allocations: 21.66 kB / 0.564 GB, free: 1.227 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.748e-05/0.2728, allocations: 25.7 kB / 0.564 GB, free: 1.195 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.102e-06/0.2728, allocations: 0 / 0.564 GB, free: 1.195 MB / 398.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 8.692e-05/0.2728, allocations: 53.62 kB / 0.5641 GB, free: 1.137 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.097e-05/0.2729, allocations: 4 kB / 0.5641 GB, free: 1.133 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.757e-06/0.2729, allocations: 4 kB / 0.5641 GB, free: 1.129 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.043e-05/0.2729, allocations: 0 / 0.5641 GB, free: 1.129 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.952e-05/0.2729, allocations: 4 kB / 0.5641 GB, free: 1.125 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.478e-06/0.2729, allocations: 4.031 kB / 0.5641 GB, free: 1.121 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.276e-05/0.2729, allocations: 11.89 kB / 0.5641 GB, free: 1.109 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.23e-06/0.2729, allocations: 4 kB / 0.5641 GB, free: 1.105 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 2 (greaterEqualThreshold.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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 8.386e-05/0.273, allocations: 109.8 kB / 0.5642 GB, free: 0.9883 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.355e-06/0.273, allocations: 0 / 0.5642 GB, free: 0.9883 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.853e-05/0.2731, allocations: 16.31 kB / 0.5642 GB, free: 0.9648 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.278e-06/0.2731, allocations: 4 kB / 0.5642 GB, free: 0.9609 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.166e-06/0.2731, allocations: 0 / 0.5642 GB, free: 0.9609 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.571e-06/0.2731, allocations: 7.922 kB / 0.5642 GB, free: 0.9531 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000287/0.2734, allocations: 273.7 kB / 0.5645 GB, free: 0.6367 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.2734, allocations: 7.938 kB / 0.5645 GB, free: 0.6289 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.735e-05/0.2734, allocations: 0 / 0.5645 GB, free: 0.6289 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.443e-06/0.2734, allocations: 0 / 0.5645 GB, free: 0.6289 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.276e-05/0.2734, allocations: 8.312 kB / 0.5645 GB, free: 0.6211 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.2734, allocations: 0 / 0.5645 GB, free: 0.6211 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.2734, allocations: 0 / 0.5645 GB, free: 0.6211 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001446/0.2735, allocations: 147.5 kB / 0.5647 GB, free: 472 kB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.703e-05/0.2736, allocations: 15.91 kB / 0.5647 GB, free: 456 kB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.424e-05/0.2736, allocations: 3.938 kB / 0.5647 GB, free: 452 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.569e-05/0.2736, allocations: 4 kB / 0.5647 GB, free: 448 kB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.979e-05/0.2737, allocations: 0 / 0.5647 GB, free: 448 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.857e-06/0.2737, allocations: 8.062 kB / 0.5647 GB, free: 440 kB / 398.1 MB Notification: Performance of sorting global known variables: time 5.498e-05/0.2737, allocations: 91.27 kB / 0.5648 GB, free: 348 kB / 398.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2737, allocations: 0 / 0.5648 GB, free: 348 kB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002146/0.2739, allocations: 7.938 kB / 0.5648 GB, free: 340 kB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (integrator.y) * Number of discrete variables: 2 (greaterEqualThreshold.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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.0004563/0.2744, allocations: 0.6889 MB / 0.5655 GB, free: 15.62 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 7.294e-05/0.2745, allocations: 12 kB / 0.5655 GB, free: 15.61 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.2745, allocations: 0 / 0.5655 GB, free: 15.61 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 2.979e-05/0.2745, allocations: 15.92 kB / 0.5655 GB, free: 15.59 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002443/0.2747, allocations: 8 kB / 0.5655 GB, free: 15.58 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001179/0.2759, allocations: 1.289 MB / 0.5667 GB, free: 14.21 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.858e-05/0.276, allocations: 63.34 kB / 0.5668 GB, free: 14.13 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 2.07e-05/0.276, allocations: 4 kB / 0.5668 GB, free: 14.12 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.54e-05/0.276, allocations: 15.42 kB / 0.5668 GB, free: 14.11 MB / 414.1 MB Notification: Performance of SimCode: time 2.51e-07/0.276, allocations: 0 / 0.5668 GB, free: 14.11 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02175/0.2978, allocations: 1.753 MB / 0.5685 GB, free: 12.46 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.33/10.62, allocations: 13.77 kB / 0.5685 GB, free: 12.46 MB / 414.1 MB " [Timeout remaining time 649] (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Blocks_SelfResettingIntegrator_fmu --startTime=0 --stopTime=5 --stepSize=0.000998004 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Blocks_SelfResettingIntegrator.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/SelfResettingIntegrator/SelfResettingIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.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: 13.397228888934478]