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.001519/0.001519, allocations: 119.1 kB / 20.45 MB, free: 1.176 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.00168/0.00168, allocations: 204.9 kB / 23.72 MB, free: 4.391 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.374/1.374, allocations: 230.5 MB / 257.4 MB, free: 7.758 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.2153/0.2153, allocations: 46.95 MB / 360.8 MB, free: 3.926 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.002337/0.002337, allocations: 91.8 kB / 0.4962 GB, free: 7.559 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2794/0.2817, allocations: 66.08 MB / 0.5607 GB, free: 4.043 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.002131/0.2839, allocations: 0.8086 MB / 0.5615 GB, free: 3.238 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001946/0.2841, allocations: 47.81 kB / 0.5615 GB, free: 3.191 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.749e-05/0.2841, allocations: 0 / 0.5615 GB, free: 3.191 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 9.937e-05/0.2842, allocations: 7.938 kB / 0.5615 GB, free: 3.184 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 1.61e-05/0.2842, allocations: 3.938 kB / 0.5615 GB, free: 3.18 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001044/0.2843, allocations: 19.98 kB / 0.5616 GB, free: 3.16 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 9.726e-05/0.2844, allocations: 39.91 kB / 0.5616 GB, free: 3.121 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.93e-05/0.2845, allocations: 13.83 kB / 0.5616 GB, free: 3.109 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.553e-05/0.2846, allocations: 15.92 kB / 0.5616 GB, free: 3.094 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.574e-05/0.2846, allocations: 7.938 kB / 0.5616 GB, free: 3.086 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.402e-05/0.2846, allocations: 7.938 kB / 0.5616 GB, free: 3.078 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.045e-05/0.2846, allocations: 4 kB / 0.5616 GB, free: 3.074 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.965e-05/0.2846, allocations: 7.984 kB / 0.5616 GB, free: 3.066 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 3.022e-05/0.2847, allocations: 15.92 kB / 0.5617 GB, free: 3.051 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 9.535e-05/0.2848, allocations: 39.72 kB / 0.5617 GB, free: 3.012 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.426e-06/0.2848, allocations: 0 / 0.5617 GB, free: 3.012 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.163e-06/0.2848, allocations: 0 / 0.5617 GB, free: 3.012 MB / 398.1 MB Notification: Performance of Transformations before backend: time 3.977e-06/0.2848, allocations: 8 kB / 0.5617 GB, free: 3.004 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.0004307/0.2852, allocations: 279.1 kB / 0.562 GB, free: 2.695 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.818e-05/0.2852, allocations: 8.031 kB / 0.562 GB, free: 2.688 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.612e-05/0.2853, allocations: 34.73 kB / 0.562 GB, free: 2.645 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.492e-05/0.2853, allocations: 8.891 kB / 0.562 GB, free: 2.637 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002034/0.2855, allocations: 122.5 kB / 0.5621 GB, free: 2.492 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.127e-06/0.2855, allocations: 384 / 0.5621 GB, free: 2.492 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.905e-05/0.2855, allocations: 12.36 kB / 0.5621 GB, free: 2.48 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001141/0.2857, allocations: 50.19 kB / 0.5622 GB, free: 2.426 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.778e-06/0.2857, allocations: 7.938 kB / 0.5622 GB, free: 2.418 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.237e-06/0.2857, allocations: 4 kB / 0.5622 GB, free: 2.414 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.188e-06/0.2857, allocations: 0 / 0.5622 GB, free: 2.414 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.396e-05/0.2857, allocations: 15.98 kB / 0.5622 GB, free: 2.398 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000489/0.2862, allocations: 251.8 kB / 0.5625 GB, free: 2.109 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.893e-05/0.2863, allocations: 26.52 kB / 0.5625 GB, free: 2.074 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.898e-05/0.2863, allocations: 8.922 kB / 0.5625 GB, free: 2.062 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.227e-06/0.2863, allocations: 0 / 0.5625 GB, free: 2.062 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.852e-05/0.2864, allocations: 55.36 kB / 0.5625 GB, free: 1.996 MB / 398.1 MB Notification: Performance of pre-optimization done (n=3): time 1.002e-06/0.2864, allocations: 0 / 0.5625 GB, free: 1.996 MB / 398.1 MB Notification: Performance of matching and sorting (n=3): time 0.000141/0.2865, allocations: 61.56 kB / 0.5626 GB, free: 1.93 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.354e-05/0.2866, allocations: 55.34 kB / 0.5627 GB, free: 1.863 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001/0.2867, allocations: 117.8 kB / 0.5628 GB, free: 1.738 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.083e-05/0.2867, allocations: 29.7 kB / 0.5628 GB, free: 1.703 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.534e-05/0.2868, allocations: 92.09 kB / 0.5629 GB, free: 1.609 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.423e-05/0.2868, allocations: 8.016 kB / 0.5629 GB, free: 1.602 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.584e-05/0.2868, allocations: 21.7 kB / 0.5629 GB, free: 1.574 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001569/0.287, allocations: 314.8 kB / 0.5632 GB, free: 1.258 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.849e-05/0.287, allocations: 8 kB / 0.5632 GB, free: 1.25 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.938e-05/0.287, allocations: 21.7 kB / 0.5632 GB, free: 1.223 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.974e-05/0.2871, allocations: 33.66 kB / 0.5633 GB, free: 1.184 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.272e-06/0.2871, allocations: 0 / 0.5633 GB, free: 1.184 MB / 398.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 8.165e-05/0.2871, allocations: 49.69 kB / 0.5633 GB, free: 1.129 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.193e-05/0.2872, allocations: 4 kB / 0.5633 GB, free: 1.125 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.078e-06/0.2872, allocations: 0 / 0.5633 GB, free: 1.125 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.145e-05/0.2872, allocations: 3.938 kB / 0.5633 GB, free: 1.121 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.968e-05/0.2872, allocations: 4 kB / 0.5633 GB, free: 1.117 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.107e-06/0.2872, allocations: 0 / 0.5633 GB, free: 1.117 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.328e-05/0.2872, allocations: 11.89 kB / 0.5633 GB, free: 1.105 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.587e-06/0.2872, allocations: 32 / 0.5633 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.694e-05/0.2873, allocations: 117.8 kB / 0.5635 GB, free: 0.9805 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.306e-05/0.2873, allocations: 7.984 kB / 0.5635 GB, free: 0.9727 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.288e-05/0.2874, allocations: 8.328 kB / 0.5635 GB, free: 0.957 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.283e-06/0.2874, allocations: 0 / 0.5635 GB, free: 0.957 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.136e-06/0.2874, allocations: 0 / 0.5635 GB, free: 0.957 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.282e-06/0.2874, allocations: 7.922 kB / 0.5635 GB, free: 0.9492 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002919/0.2877, allocations: 269.6 kB / 0.5637 GB, free: 0.6367 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.2877, allocations: 4 kB / 0.5637 GB, free: 0.6328 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.902e-05/0.2877, allocations: 4 kB / 0.5637 GB, free: 0.6289 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.563e-06/0.2877, allocations: 0 / 0.5637 GB, free: 0.6289 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.776e-06/0.2877, allocations: 7.938 kB / 0.5638 GB, free: 0.6211 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.243e-06/0.2877, allocations: 0 / 0.5638 GB, free: 0.6211 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.048e-06/0.2877, allocations: 4.359 kB / 0.5638 GB, free: 0.6172 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001598/0.2879, allocations: 151.6 kB / 0.5639 GB, free: 464 kB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.099e-05/0.2879, allocations: 3.953 kB / 0.5639 GB, free: 460 kB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.333e-05/0.2879, allocations: 7.875 kB / 0.5639 GB, free: 452 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.488e-05/0.288, allocations: 11.88 kB / 0.5639 GB, free: 440 kB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.636e-05/0.288, allocations: 0 / 0.5639 GB, free: 440 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.898e-06/0.288, allocations: 0 / 0.5639 GB, free: 440 kB / 398.1 MB Notification: Performance of sorting global known variables: time 6.085e-05/0.2881, allocations: 95.27 kB / 0.564 GB, free: 344 kB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2881, allocations: 4.062 kB / 0.564 GB, free: 340 kB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002106/0.2883, allocations: 11.94 kB / 0.564 GB, free: 328 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.0004707/0.2887, allocations: 0.6734 MB / 0.5647 GB, free: 15.62 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 8.433e-05/0.2888, allocations: 23.88 kB / 0.5647 GB, free: 15.6 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.2888, allocations: 0 / 0.5647 GB, free: 15.6 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 2.082e-05/0.2888, allocations: 11.98 kB / 0.5647 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.0002444/0.2891, allocations: 4 kB / 0.5647 GB, free: 15.58 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001238/0.2903, allocations: 1.293 MB / 0.566 GB, free: 14.21 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.43e-05/0.2904, allocations: 67.47 kB / 0.5661 GB, free: 14.12 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 3.036e-05/0.2904, allocations: 7.984 kB / 0.5661 GB, free: 14.11 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.559e-05/0.2905, allocations: 11.44 kB / 0.5661 GB, free: 14.1 MB / 414.1 MB Notification: Performance of SimCode: time 3e-07/0.2905, allocations: 4 kB / 0.5661 GB, free: 14.1 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02755/0.318, allocations: 2.083 MB / 0.5681 GB, free: 12.11 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.53/10.85, allocations: 5.016 kB / 0.5681 GB, free: 12.11 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.556974560953677]