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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: translateModel(ModelicaTest.Blocks.SelfResettingIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator") translateModel(ModelicaTest.Blocks.SelfResettingIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001025/0.001025, allocations: 202.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.326/1.326, allocations: 225.6 MB / 234.8 MB, free: 3.211 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008173/0.0008174, allocations: 103.7 kB / 286.7 MB, free: 5.301 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2107/0.2107, allocations: 45.14 MB / 383.7 MB, free: 244 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.187e-05/1.195e-05, allocations: 4 kB / 453.2 MB, free: 75.83 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1074/0.1075, allocations: 63.25 MB / 0.5044 GB, free: 12.63 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4035/0.511, allocations: 86.25 MB / 0.5886 GB, free: 320 kB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00017/0.5113, allocations: 59.31 kB / 0.5886 GB, free: 292 kB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.002141/0.5134, allocations: 0.9841 MB / 0.5896 GB, free: 15.43 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.263e-06/0.5134, allocations: 4 kB / 0.5896 GB, free: 15.43 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.168e-05/0.5134, allocations: 4 kB / 0.5896 GB, free: 15.42 MB / 394.7 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.0003349/0.5138, allocations: 329.8 kB / 0.5899 GB, free: 15.06 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.886e-05/0.5138, allocations: 8.688 kB / 0.5899 GB, free: 15.05 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.612e-05/0.5139, allocations: 7.906 kB / 0.5899 GB, free: 15.04 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001875/0.5141, allocations: 174.8 kB / 0.5901 GB, free: 14.84 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.196e-05/0.5141, allocations: 3.984 kB / 0.5901 GB, free: 14.83 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.887e-05/0.5141, allocations: 7.062 kB / 0.5901 GB, free: 14.83 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.204e-05/0.5142, allocations: 11.44 kB / 0.5901 GB, free: 14.82 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.424e-05/0.5143, allocations: 40.95 kB / 0.5902 GB, free: 14.78 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.438e-06/0.5143, allocations: 7.875 kB / 0.5902 GB, free: 14.77 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.326e-05/0.5143, allocations: 4 kB / 0.5902 GB, free: 14.77 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.576e-06/0.5143, allocations: 0 / 0.5902 GB, free: 14.77 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000433/0.5148, allocations: 264.1 kB / 0.5904 GB, free: 14.48 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.559e-05/0.5148, allocations: 25.83 kB / 0.5905 GB, free: 14.45 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.674e-05/0.5148, allocations: 15.42 kB / 0.5905 GB, free: 14.44 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.705e-06/0.5148, allocations: 3.938 kB / 0.5905 GB, free: 14.43 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.804e-05/0.5149, allocations: 43.41 kB / 0.5905 GB, free: 14.38 MB / 394.7 MB Notification: Performance of pre-optimization done (n=3): time 1.102e-06/0.5149, allocations: 0 / 0.5905 GB, free: 14.38 MB / 394.7 MB Notification: Performance of matching and sorting (n=3): time 0.0001061/0.5151, allocations: 41.52 kB / 0.5906 GB, free: 14.34 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.74e-05/0.5151, allocations: 59.34 kB / 0.5906 GB, free: 14.27 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.026e-05/0.5152, allocations: 104.7 kB / 0.5907 GB, free: 14.16 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.407e-05/0.5152, allocations: 25.7 kB / 0.5907 GB, free: 14.13 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.633e-05/0.5152, allocations: 91.06 kB / 0.5908 GB, free: 14.04 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.386e-05/0.5152, allocations: 11.16 kB / 0.5908 GB, free: 14.03 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.505e-06/0.5153, allocations: 0 / 0.5908 GB, free: 14.03 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.00011/0.5154, allocations: 310.8 kB / 0.5911 GB, free: 13.72 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.261e-05/0.5154, allocations: 7.188 kB / 0.5911 GB, free: 13.71 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.211e-05/0.5154, allocations: 20.59 kB / 0.5912 GB, free: 13.69 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.986e-05/0.5155, allocations: 12.12 kB / 0.5912 GB, free: 13.68 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.5155, allocations: 0 / 0.5912 GB, free: 13.68 MB / 394.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 6.584e-05/0.5155, allocations: 51.28 kB / 0.5912 GB, free: 13.63 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.862e-05/0.5156, allocations: 8 kB / 0.5912 GB, free: 13.62 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.399e-06/0.5156, allocations: 0 / 0.5912 GB, free: 13.62 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.235e-05/0.5156, allocations: 3.984 kB / 0.5912 GB, free: 13.62 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.106e-05/0.5156, allocations: 4 kB / 0.5912 GB, free: 13.61 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.895e-06/0.5156, allocations: 4.641 kB / 0.5912 GB, free: 13.61 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.843e-05/0.5157, allocations: 7.984 kB / 0.5912 GB, free: 13.6 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.138e-06/0.5157, allocations: 4 kB / 0.5913 GB, free: 13.6 MB / 394.7 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 ($whenCondition1,greaterEqualThreshold.y) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.659e-05/0.5157, allocations: 104 kB / 0.5914 GB, free: 13.49 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.151e-05/0.5158, allocations: 4 kB / 0.5914 GB, free: 13.49 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.936e-05/0.5158, allocations: 11.34 kB / 0.5914 GB, free: 13.48 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.122e-06/0.5158, allocations: 0 / 0.5914 GB, free: 13.48 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.146e-06/0.5158, allocations: 0 / 0.5914 GB, free: 13.48 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.048e-06/0.5158, allocations: 3.984 kB / 0.5914 GB, free: 13.47 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002355/0.5161, allocations: 280.9 kB / 0.5916 GB, free: 13.16 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.246e-06/0.5161, allocations: 0 / 0.5916 GB, free: 13.16 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.812e-05/0.5161, allocations: 3.938 kB / 0.5916 GB, free: 13.16 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.5161, allocations: 0 / 0.5916 GB, free: 13.16 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.056e-05/0.5161, allocations: 7.188 kB / 0.5916 GB, free: 13.16 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.61e-07/0.5161, allocations: 0 / 0.5916 GB, free: 13.16 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/0.5161, allocations: 0 / 0.5916 GB, free: 13.16 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001275/0.5163, allocations: 150.3 kB / 0.5918 GB, free: 13 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.041e-05/0.5163, allocations: 81.17 kB / 0.5919 GB, free: 12.9 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.226e-05/0.5163, allocations: 3.984 kB / 0.5919 GB, free: 12.9 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.13e-05/0.5164, allocations: 0 / 0.5919 GB, free: 12.9 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.63e-05/0.5164, allocations: 4 kB / 0.5919 GB, free: 12.89 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.888e-06/0.5164, allocations: 0 / 0.5919 GB, free: 12.89 MB / 394.7 MB Notification: Performance of sorting global known variables: time 3.6e-05/0.5165, allocations: 87.02 kB / 0.592 GB, free: 12.81 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5165, allocations: 0 / 0.592 GB, free: 12.81 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.000209/0.5167, allocations: 23.84 kB / 0.592 GB, free: 12.79 MB / 394.7 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000102/0.5168, allocations: 95.19 kB / 0.5921 GB, free: 12.69 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 7.048e-05/0.5169, allocations: 15.06 kB / 0.5921 GB, free: 12.68 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.5169, allocations: 4 kB / 0.5921 GB, free: 12.67 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 1.395e-05/0.5169, allocations: 7.062 kB / 0.5921 GB, free: 12.67 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001731/0.5171, allocations: 7.984 kB / 0.5921 GB, free: 12.66 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001989/0.5173, allocations: 84.08 kB / 0.5922 GB, free: 12.55 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002407/0.5175, allocations: 0.6885 MB / 0.5929 GB, free: 11.84 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 1.691e-05/0.5176, allocations: 4 kB / 0.5929 GB, free: 11.84 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.467e-05/0.5176, allocations: 15.44 kB / 0.5929 GB, free: 11.82 MB / 394.7 MB Notification: Performance of SimCode: time 2.5e-07/0.5176, allocations: 3.938 kB / 0.5929 GB, free: 11.82 MB / 394.7 MB Notification: Performance of Templates: time 0.001944/0.5195, allocations: 396.3 kB / 0.5933 GB, free: 11.44 MB / 394.7 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.makefile (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 & ./ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/SelfResettingIntegrator/SelfResettingIntegrator.csv","../files/ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches