Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_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_cpp_ModelicaTest.Blocks.SelfResettingIntegrator") translateModel(ModelicaTest.Blocks.SelfResettingIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Blocks.SelfResettingIntegrator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001104/0.001104, allocations: 195 kB / 16.79 MB, free: 5.035 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.36/1.36, allocations: 226.5 MB / 244.1 MB, free: 8.086 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008207/0.0008206, allocations: 102.8 kB / 296.1 MB, free: 6.855 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3205/0.3205, allocations: 44.82 MB / 393 MB, free: 35.63 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002712/0.0002713, allocations: 7.938 kB / 465.9 MB, free: 12.66 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3161/0.3164, allocations: 62.95 MB / 0.5165 GB, free: 36.98 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.108/0.4244, allocations: 86.85 MB / 0.6013 GB, free: 2.512 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001688/0.4246, allocations: 63.97 kB / 0.6013 GB, free: 2.449 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.002251/0.4269, allocations: 0.9927 MB / 0.6023 GB, free: 1.453 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.222e-06/0.4269, allocations: 0 / 0.6023 GB, free: 1.453 MB / 410.7 MB Notification: Performance of Transformations before backend: time 9.047e-06/0.4269, allocations: 8 kB / 0.6023 GB, free: 1.445 MB / 410.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.0002572/0.4271, allocations: 343.4 kB / 0.6026 GB, free: 1.059 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.231e-05/0.4272, allocations: 8.031 kB / 0.6026 GB, free: 1.051 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.313e-05/0.4272, allocations: 8.844 kB / 0.6027 GB, free: 1.043 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001447/0.4274, allocations: 176.5 kB / 0.6028 GB, free: 0.832 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.212e-05/0.4274, allocations: 8.312 kB / 0.6028 GB, free: 0.8242 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.666e-05/0.4274, allocations: 4.312 kB / 0.6028 GB, free: 0.8203 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000107/0.4275, allocations: 50.25 kB / 0.6029 GB, free: 0.7656 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.137e-06/0.4275, allocations: 8.172 kB / 0.6029 GB, free: 0.7578 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.243e-05/0.4275, allocations: 7.938 kB / 0.6029 GB, free: 0.75 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.939e-06/0.4276, allocations: 7.938 kB / 0.6029 GB, free: 0.7422 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.987e-05/0.4276, allocations: 11.98 kB / 0.6029 GB, free: 0.7305 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004564/0.4281, allocations: 292.7 kB / 0.6032 GB, free: 404 kB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.046e-05/0.4281, allocations: 30.58 kB / 0.6032 GB, free: 364 kB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.62e-05/0.4282, allocations: 4.859 kB / 0.6032 GB, free: 356 kB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.678e-06/0.4282, allocations: 0 / 0.6032 GB, free: 356 kB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.753e-05/0.4283, allocations: 51.47 kB / 0.6033 GB, free: 292 kB / 410.7 MB Notification: Performance of pre-optimization done (n=3): time 2.395e-06/0.4283, allocations: 0 / 0.6033 GB, free: 292 kB / 410.7 MB Notification: Performance of matching and sorting (n=3): time 0.0001279/0.4284, allocations: 53.62 kB / 0.6033 GB, free: 232 kB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.099e-05/0.4285, allocations: 51.41 kB / 0.6034 GB, free: 168 kB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.249e-05/0.4286, allocations: 121.8 kB / 0.6035 GB, free: 36 kB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.186e-05/0.4286, allocations: 25.7 kB / 0.6035 GB, free: 4 kB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.337e-05/0.4286, allocations: 99.97 kB / 0.6036 GB, free: 15.9 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.191e-05/0.4287, allocations: 3.906 kB / 0.6036 GB, free: 15.9 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.384e-06/0.4287, allocations: 0 / 0.6036 GB, free: 15.9 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001116/0.4288, allocations: 318.8 kB / 0.6039 GB, free: 15.58 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.57e-05/0.4288, allocations: 4 kB / 0.6039 GB, free: 15.57 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.707e-05/0.4288, allocations: 25.64 kB / 0.604 GB, free: 15.54 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.655e-05/0.4289, allocations: 25.72 kB / 0.604 GB, free: 15.51 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.383e-06/0.4289, allocations: 0 / 0.604 GB, free: 15.51 MB / 426.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.696e-05/0.429, allocations: 57.62 kB / 0.604 GB, free: 15.45 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.312e-05/0.429, allocations: 8 kB / 0.604 GB, free: 15.44 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.168e-06/0.429, allocations: 0 / 0.604 GB, free: 15.44 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.396e-05/0.429, allocations: 0 / 0.604 GB, free: 15.44 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.095e-05/0.4291, allocations: 4 kB / 0.604 GB, free: 15.44 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.029e-06/0.4291, allocations: 0 / 0.604 GB, free: 15.44 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.325e-05/0.4291, allocations: 7.906 kB / 0.6041 GB, free: 15.43 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.81e-06/0.4291, allocations: 7.969 kB / 0.6041 GB, free: 15.42 MB / 426.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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.72e-05/0.4292, allocations: 121.8 kB / 0.6042 GB, free: 15.29 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.798e-06/0.4292, allocations: 0 / 0.6042 GB, free: 15.29 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.39e-05/0.4292, allocations: 7.906 kB / 0.6042 GB, free: 15.28 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-06/0.4292, allocations: 4.266 kB / 0.6042 GB, free: 15.28 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.116e-06/0.4293, allocations: 384 / 0.6042 GB, free: 15.28 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.966e-06/0.4293, allocations: 0 / 0.6042 GB, free: 15.28 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002904/0.4296, allocations: 310.5 kB / 0.6045 GB, free: 14.92 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.4296, allocations: 0 / 0.6045 GB, free: 14.92 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.027e-05/0.4296, allocations: 7.938 kB / 0.6045 GB, free: 14.91 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.315e-06/0.4296, allocations: 0 / 0.6045 GB, free: 14.91 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.738e-06/0.4296, allocations: 4 kB / 0.6045 GB, free: 14.91 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.737e-06/0.4296, allocations: 3.938 kB / 0.6045 GB, free: 14.9 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.4296, allocations: 0 / 0.6045 GB, free: 14.9 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001394/0.4298, allocations: 155.4 kB / 0.6046 GB, free: 14.73 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.755e-05/0.4298, allocations: 81.08 kB / 0.6047 GB, free: 14.64 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.275e-05/0.4299, allocations: 4 kB / 0.6047 GB, free: 14.63 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.7e-05/0.4299, allocations: 7.969 kB / 0.6047 GB, free: 14.62 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.333e-05/0.43, allocations: 0 / 0.6047 GB, free: 14.62 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.761e-06/0.43, allocations: 4 kB / 0.6047 GB, free: 14.62 MB / 426.7 MB Notification: Performance of sorting global known variables: time 4.612e-05/0.43, allocations: 91.27 kB / 0.6048 GB, free: 14.53 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.43, allocations: 0 / 0.6048 GB, free: 14.53 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0002301/0.4303, allocations: 8 kB / 0.6048 GB, free: 14.52 MB / 426.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 () * 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 (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.0001026/0.4304, allocations: 95.23 kB / 0.6049 GB, free: 14.42 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 8.171e-05/0.4305, allocations: 23.94 kB / 0.6049 GB, free: 14.4 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.4305, allocations: 0 / 0.6049 GB, free: 14.4 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 1.715e-05/0.4305, allocations: 8 kB / 0.605 GB, free: 14.39 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002518/0.4307, allocations: 11.98 kB / 0.605 GB, free: 14.38 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002798/0.431, allocations: 166.6 kB / 0.6051 GB, free: 14.18 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002292/0.4313, allocations: 0.6888 MB / 0.6058 GB, free: 13.46 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.683e-05/0.4313, allocations: 11.44 kB / 0.6058 GB, free: 13.45 MB / 426.7 MB Notification: Performance of SimCode: time 2.21e-07/0.4313, allocations: 0 / 0.6058 GB, free: 13.45 MB / 426.7 MB Notification: Performance of Templates: time 0.001787/0.4331, allocations: 0.7318 MB / 0.6065 GB, free: 12.72 MB / 426.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Blocks.SelfResettingIntegrator.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Blocks.SelfResettingIntegrator.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Blocks.SelfResettingIntegrator.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Blocks.SelfResettingIntegrator --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/SelfResettingIntegrator/SelfResettingIntegrator.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Blocks.SelfResettingIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches