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.00129/0.00129, allocations: 109.1 kB / 21.22 MB, free: 0.7539 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.001506/0.001506, allocations: 216.9 kB / 24.53 MB, free: 4.012 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.387/1.387, allocations: 230.5 MB / 258.2 MB, free: 8.027 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.2084/0.2084, allocations: 46.92 MB / 361.6 MB, free: 4.203 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.002232/0.002232, allocations: 71.89 kB / 0.497 GB, free: 7.797 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2778/0.28, allocations: 66.09 MB / 0.5615 GB, free: 4.328 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.002052/0.2821, allocations: 0.8203 MB / 0.5623 GB, free: 3.512 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001774/0.2822, allocations: 47.83 kB / 0.5623 GB, free: 3.465 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.096e-05/0.2823, allocations: 0 / 0.5623 GB, free: 3.465 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000104/0.2824, allocations: 15.86 kB / 0.5624 GB, free: 3.449 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 1.391e-05/0.2824, allocations: 0 / 0.5624 GB, free: 3.449 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001214/0.2825, allocations: 27.86 kB / 0.5624 GB, free: 3.422 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001004/0.2826, allocations: 39.92 kB / 0.5624 GB, free: 3.383 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.187e-05/0.2827, allocations: 17.8 kB / 0.5624 GB, free: 3.367 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.494e-05/0.2827, allocations: 11.94 kB / 0.5624 GB, free: 3.355 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.616e-05/0.2828, allocations: 19.86 kB / 0.5625 GB, free: 3.336 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.307e-05/0.2828, allocations: 4 kB / 0.5625 GB, free: 3.332 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.904e-06/0.2828, allocations: 0 / 0.5625 GB, free: 3.332 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.954e-05/0.2828, allocations: 8 kB / 0.5625 GB, free: 3.324 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 3.49e-05/0.2829, allocations: 19.86 kB / 0.5625 GB, free: 3.305 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 9.356e-05/0.283, allocations: 39.77 kB / 0.5625 GB, free: 3.266 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.786e-06/0.283, allocations: 4 kB / 0.5625 GB, free: 3.262 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.283, allocations: 0 / 0.5625 GB, free: 3.262 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.158e-06/0.283, allocations: 0 / 0.5625 GB, free: 3.262 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.0003827/0.2834, allocations: 279.1 kB / 0.5628 GB, free: 2.953 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.357e-05/0.2834, allocations: 8.031 kB / 0.5628 GB, free: 2.945 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.481e-05/0.2834, allocations: 4.188 kB / 0.5628 GB, free: 2.941 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.857e-05/0.2834, allocations: 34.75 kB / 0.5628 GB, free: 2.898 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.634e-05/0.2835, allocations: 8.891 kB / 0.5629 GB, free: 2.891 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001812/0.2836, allocations: 126.5 kB / 0.563 GB, free: 2.742 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.127e-06/0.2836, allocations: 4.375 kB / 0.563 GB, free: 2.738 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.611e-05/0.2837, allocations: 4.375 kB / 0.563 GB, free: 2.734 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001027/0.2838, allocations: 54 kB / 0.563 GB, free: 2.676 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.171e-06/0.2838, allocations: 0 / 0.563 GB, free: 2.676 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.244e-06/0.2838, allocations: 0 / 0.563 GB, free: 2.676 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.917e-06/0.2838, allocations: 0 / 0.563 GB, free: 2.676 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.367e-05/0.2838, allocations: 19.97 kB / 0.5631 GB, free: 2.656 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004505/0.2843, allocations: 267.7 kB / 0.5633 GB, free: 2.352 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.16e-05/0.2843, allocations: 26.58 kB / 0.5633 GB, free: 2.316 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.561e-05/0.2843, allocations: 4.859 kB / 0.5633 GB, free: 2.309 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.624e-06/0.2844, allocations: 0 / 0.5633 GB, free: 2.309 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.157e-05/0.2844, allocations: 59.36 kB / 0.5634 GB, free: 2.238 MB / 398.1 MB Notification: Performance of pre-optimization done (n=3): time 8.92e-07/0.2844, allocations: 0 / 0.5634 GB, free: 2.238 MB / 398.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001218/0.2846, allocations: 49.69 kB / 0.5634 GB, free: 2.184 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.304e-05/0.2846, allocations: 55.41 kB / 0.5635 GB, free: 2.117 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.418e-05/0.2847, allocations: 121.7 kB / 0.5636 GB, free: 1.988 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.586e-05/0.2847, allocations: 25.7 kB / 0.5636 GB, free: 1.957 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.782e-05/0.2848, allocations: 96.08 kB / 0.5637 GB, free: 1.859 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.197e-05/0.2848, allocations: 11.89 kB / 0.5637 GB, free: 1.848 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.921e-05/0.2848, allocations: 13.72 kB / 0.5638 GB, free: 1.828 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.00014/0.2849, allocations: 318.8 kB / 0.5641 GB, free: 1.508 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.633e-05/0.285, allocations: 8 kB / 0.5641 GB, free: 1.5 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.845e-05/0.285, allocations: 21.66 kB / 0.5641 GB, free: 1.473 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.537e-05/0.285, allocations: 29.7 kB / 0.5641 GB, free: 1.438 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.604e-06/0.285, allocations: 0 / 0.5641 GB, free: 1.438 MB / 398.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.583e-05/0.2851, allocations: 49.64 kB / 0.5642 GB, free: 1.383 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.367e-05/0.2851, allocations: 8 kB / 0.5642 GB, free: 1.375 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.627e-06/0.2851, allocations: 0 / 0.5642 GB, free: 1.375 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.227e-05/0.2851, allocations: 8.016 kB / 0.5642 GB, free: 1.367 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.743e-05/0.2852, allocations: 4 kB / 0.5642 GB, free: 1.363 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.108e-06/0.2852, allocations: 0 / 0.5642 GB, free: 1.363 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.961e-05/0.2852, allocations: 11.89 kB / 0.5642 GB, free: 1.352 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.146e-06/0.2852, allocations: 0 / 0.5642 GB, free: 1.352 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 7.791e-05/0.2853, allocations: 113.8 kB / 0.5643 GB, free: 1.23 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.346e-06/0.2853, allocations: 0 / 0.5643 GB, free: 1.23 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.161e-05/0.2853, allocations: 8 kB / 0.5643 GB, free: 1.215 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.156e-06/0.2853, allocations: 3.984 kB / 0.5643 GB, free: 1.211 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.036e-06/0.2853, allocations: 4 kB / 0.5643 GB, free: 1.207 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.2853, allocations: 3.938 kB / 0.5643 GB, free: 1.203 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002765/0.2856, allocations: 277.9 kB / 0.5646 GB, free: 0.8828 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.2856, allocations: 0 / 0.5646 GB, free: 0.8828 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.65e-05/0.2856, allocations: 0 / 0.5646 GB, free: 0.8828 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.393e-06/0.2856, allocations: 0 / 0.5646 GB, free: 0.8828 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.064e-05/0.2856, allocations: 7.984 kB / 0.5646 GB, free: 0.875 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.895e-06/0.2856, allocations: 3.984 kB / 0.5646 GB, free: 0.8711 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/0.2857, allocations: 3.984 kB / 0.5646 GB, free: 0.8672 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001436/0.2858, allocations: 151.5 kB / 0.5647 GB, free: 0.7031 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.043e-05/0.2858, allocations: 3.953 kB / 0.5647 GB, free: 0.6992 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.543e-05/0.2858, allocations: 7.969 kB / 0.5648 GB, free: 0.6914 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.153e-05/0.2859, allocations: 0 / 0.5648 GB, free: 0.6914 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.133e-05/0.2859, allocations: 3.984 kB / 0.5648 GB, free: 0.6875 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.581e-06/0.2859, allocations: 4 kB / 0.5648 GB, free: 0.6836 MB / 398.1 MB Notification: Performance of sorting global known variables: time 5.645e-05/0.286, allocations: 99.58 kB / 0.5649 GB, free: 0.5859 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.286, allocations: 0 / 0.5649 GB, free: 0.5859 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002062/0.2862, allocations: 15.94 kB / 0.5649 GB, free: 0.5703 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.0004084/0.2866, allocations: 0.6772 MB / 0.5655 GB, free: 15.87 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 7.779e-05/0.2866, allocations: 19.98 kB / 0.5656 GB, free: 15.85 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.503e-06/0.2866, allocations: 0 / 0.5656 GB, free: 15.85 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 2.025e-05/0.2867, allocations: 11.94 kB / 0.5656 GB, free: 15.84 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002374/0.2869, allocations: 14.45 kB / 0.5656 GB, free: 15.82 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001129/0.288, allocations: 1.286 MB / 0.5668 GB, free: 14.45 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002995/0.2883, allocations: 0.6846 MB / 0.5675 GB, free: 13.74 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 1.77e-05/0.2884, allocations: 4 kB / 0.5675 GB, free: 13.74 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.202e-05/0.2884, allocations: 11.44 kB / 0.5675 GB, free: 13.73 MB / 414.1 MB Notification: Performance of SimCode: time 3.11e-07/0.2884, allocations: 0 / 0.5675 GB, free: 13.73 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02088/0.3093, allocations: 1.694 MB / 0.5692 GB, free: 12.14 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.29/10.6, allocations: 22.06 kB / 0.5692 GB, free: 12.12 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.385220933996607]