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.001785/0.001785, allocations: 114 kB / 20.43 MB, free: 1.457 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.002134/0.002134, allocations: 214.9 kB / 23.74 MB, free: 4.672 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.446/1.446, allocations: 230.5 MB / 257.4 MB, free: 7.984 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.2352/0.2352, allocations: 46.92 MB / 360.8 MB, free: 4.137 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.SelfResettingIntegrator,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_SelfResettingIntegrator",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002579/0.002579, allocations: 79.88 kB / 0.4962 GB, free: 7.723 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3505/0.3531, allocations: 66.08 MB / 0.5607 GB, free: 4.266 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.003053/0.3562, allocations: 0.8281 MB / 0.5615 GB, free: 3.441 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002767/0.3564, allocations: 47.81 kB / 0.5616 GB, free: 3.395 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.277e-05/0.3565, allocations: 0 / 0.5616 GB, free: 3.395 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001443/0.3567, allocations: 7.875 kB / 0.5616 GB, free: 3.387 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 1.985e-05/0.3567, allocations: 0 / 0.5616 GB, free: 3.387 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001776/0.3569, allocations: 27.91 kB / 0.5616 GB, free: 3.359 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001325/0.357, allocations: 39.92 kB / 0.5616 GB, free: 3.32 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000115/0.3571, allocations: 17.75 kB / 0.5617 GB, free: 3.305 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.127e-05/0.3571, allocations: 11.94 kB / 0.5617 GB, free: 3.293 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.022e-05/0.3572, allocations: 23.84 kB / 0.5617 GB, free: 3.27 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.778e-05/0.3572, allocations: 4 kB / 0.5617 GB, free: 3.266 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.209e-05/0.3572, allocations: 4 kB / 0.5617 GB, free: 3.262 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.023e-05/0.3573, allocations: 4 kB / 0.5617 GB, free: 3.258 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 3.667e-05/0.3573, allocations: 15.88 kB / 0.5617 GB, free: 3.242 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001264/0.3574, allocations: 43.75 kB / 0.5618 GB, free: 3.199 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.3574, allocations: 0 / 0.5618 GB, free: 3.199 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.3574, allocations: 0 / 0.5618 GB, free: 3.199 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.043e-05/0.3574, allocations: 4 kB / 0.5618 GB, free: 3.195 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.0005304/0.358, allocations: 279.1 kB / 0.562 GB, free: 2.887 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.912e-05/0.358, allocations: 12.03 kB / 0.562 GB, free: 2.875 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.341e-05/0.3581, allocations: 34.75 kB / 0.5621 GB, free: 2.832 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.993e-05/0.3581, allocations: 8.891 kB / 0.5621 GB, free: 2.824 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002717/0.3584, allocations: 122.5 kB / 0.5622 GB, free: 2.68 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.355e-05/0.3584, allocations: 384 / 0.5622 GB, free: 2.68 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.586e-05/0.3584, allocations: 4.375 kB / 0.5622 GB, free: 2.676 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001362/0.3585, allocations: 54.25 kB / 0.5623 GB, free: 2.617 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.254e-05/0.3586, allocations: 3.938 kB / 0.5623 GB, free: 2.613 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.171e-05/0.3586, allocations: 3.984 kB / 0.5623 GB, free: 2.609 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.025e-06/0.3586, allocations: 0 / 0.5623 GB, free: 2.609 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.692e-05/0.3586, allocations: 12 kB / 0.5623 GB, free: 2.598 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005655/0.3592, allocations: 263.7 kB / 0.5625 GB, free: 2.297 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.281e-05/0.3593, allocations: 34.56 kB / 0.5626 GB, free: 2.254 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.05e-05/0.3593, allocations: 4.859 kB / 0.5626 GB, free: 2.246 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.115e-05/0.3593, allocations: 0 / 0.5626 GB, free: 2.246 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001028/0.3594, allocations: 59.36 kB / 0.5626 GB, free: 2.176 MB / 398.1 MB Notification: Performance of pre-optimization done (n=3): time 1.022e-06/0.3594, allocations: 0 / 0.5626 GB, free: 2.176 MB / 398.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001741/0.3596, allocations: 49.69 kB / 0.5627 GB, free: 2.121 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.071e-05/0.3596, allocations: 51.41 kB / 0.5627 GB, free: 2.059 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001156/0.3597, allocations: 121.8 kB / 0.5628 GB, free: 1.93 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.781e-05/0.3598, allocations: 25.7 kB / 0.5629 GB, free: 1.898 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.432e-05/0.3598, allocations: 96.08 kB / 0.563 GB, free: 1.801 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.396e-05/0.3598, allocations: 4.328 kB / 0.563 GB, free: 1.797 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.505e-05/0.3599, allocations: 17.72 kB / 0.563 GB, free: 1.773 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001559/0.36, allocations: 314.8 kB / 0.5633 GB, free: 1.457 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.306e-05/0.3601, allocations: 15.92 kB / 0.5633 GB, free: 1.441 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.394e-05/0.3601, allocations: 21.59 kB / 0.5633 GB, free: 1.414 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.242e-05/0.3601, allocations: 33.72 kB / 0.5633 GB, free: 1.375 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.3602, allocations: 4 kB / 0.5633 GB, free: 1.371 MB / 398.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 9.361e-05/0.3602, allocations: 49.95 kB / 0.5634 GB, free: 1.316 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.023e-05/0.3603, allocations: 8 kB / 0.5634 GB, free: 1.309 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.715e-06/0.3603, allocations: 3.984 kB / 0.5634 GB, free: 1.305 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.498e-05/0.3603, allocations: 0 / 0.5634 GB, free: 1.305 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.415e-05/0.3603, allocations: 4 kB / 0.5634 GB, free: 1.301 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.323e-06/0.3603, allocations: 3.984 kB / 0.5634 GB, free: 1.297 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.444e-05/0.3604, allocations: 15.92 kB / 0.5634 GB, free: 1.281 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.857e-06/0.3604, allocations: 0 / 0.5634 GB, free: 1.281 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 9.507e-05/0.3605, allocations: 113.8 kB / 0.5635 GB, free: 1.16 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.688e-06/0.3605, allocations: 0 / 0.5635 GB, free: 1.16 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.205e-05/0.3605, allocations: 12 kB / 0.5635 GB, free: 1.141 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.663e-06/0.3605, allocations: 0 / 0.5635 GB, free: 1.141 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.3605, allocations: 0 / 0.5635 GB, free: 1.141 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.539e-06/0.3605, allocations: 3.938 kB / 0.5636 GB, free: 1.137 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003228/0.3608, allocations: 277.6 kB / 0.5638 GB, free: 0.8164 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.3608, allocations: 0 / 0.5638 GB, free: 0.8164 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.074e-05/0.3609, allocations: 0 / 0.5638 GB, free: 0.8164 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.933e-06/0.3609, allocations: 0 / 0.5638 GB, free: 0.8164 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.199e-05/0.3609, allocations: 7.938 kB / 0.5638 GB, free: 0.8086 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.412e-06/0.3609, allocations: 0 / 0.5638 GB, free: 0.8086 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.3609, allocations: 0 / 0.5638 GB, free: 0.8086 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001653/0.3611, allocations: 151.5 kB / 0.564 GB, free: 0.6445 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.206e-05/0.3611, allocations: 3.953 kB / 0.564 GB, free: 0.6406 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.9e-05/0.3611, allocations: 12.03 kB / 0.564 GB, free: 0.6289 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.817e-05/0.3611, allocations: 4 kB / 0.564 GB, free: 0.625 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.734e-05/0.3612, allocations: 0 / 0.564 GB, free: 0.625 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.254e-06/0.3612, allocations: 4 kB / 0.564 GB, free: 0.6211 MB / 398.1 MB Notification: Performance of sorting global known variables: time 6.703e-05/0.3612, allocations: 91.27 kB / 0.5641 GB, free: 0.5312 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3612, allocations: 0 / 0.5641 GB, free: 0.5312 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002266/0.3615, allocations: 7.938 kB / 0.5641 GB, free: 0.5234 MB / 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.0005883/0.3621, allocations: 0.6892 MB / 0.5648 GB, free: 15.81 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 9.416e-05/0.3622, allocations: 23.92 kB / 0.5648 GB, free: 15.79 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.3622, allocations: 3.938 kB / 0.5648 GB, free: 15.78 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 1.922e-05/0.3622, allocations: 7.938 kB / 0.5648 GB, free: 15.77 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002671/0.3624, allocations: 11 kB / 0.5648 GB, free: 15.77 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001438/0.3639, allocations: 1.286 MB / 0.5661 GB, free: 14.39 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004267/0.3643, allocations: 0.6846 MB / 0.5667 GB, free: 13.68 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 2.595e-05/0.3643, allocations: 3.984 kB / 0.5667 GB, free: 13.68 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.518e-05/0.3644, allocations: 19.42 kB / 0.5668 GB, free: 13.66 MB / 414.1 MB Notification: Performance of SimCode: time 5.21e-07/0.3644, allocations: 0 / 0.5668 GB, free: 13.66 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03032/0.3947, allocations: 1.664 MB / 0.5684 GB, free: 12.1 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.97/11.36, allocations: 10.34 kB / 0.5684 GB, free: 12.09 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: 14.259830939117819]