Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.SelfResettingIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator") translateModel(ModelicaTest.Blocks.SelfResettingIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001222/0.001222, allocations: 104.7 kB / 16.4 MB, free: 6.504 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001312/0.001312, allocations: 192.2 kB / 17.34 MB, free: 5.742 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.536/1.536, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2141/0.2141, allocations: 43.53 MB / 314.1 MB, free: 448 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001385/0.001385, allocations: 61.47 kB / 441.8 MB, free: 5.672 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1333/0.1347, allocations: 57.78 MB / 499.6 MB, free: 11.81 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.002217/0.137, allocations: 0.8278 MB / 0.4887 GB, free: 10.99 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002337/0.1372, allocations: 51.81 kB / 0.4887 GB, free: 10.94 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.824e-05/0.1373, allocations: 0 / 0.4887 GB, free: 10.94 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001425/0.1375, allocations: 7.938 kB / 0.4887 GB, free: 10.93 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 2.699e-05/0.1375, allocations: 7.875 kB / 0.4887 GB, free: 10.93 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001245/0.1376, allocations: 11.98 kB / 0.4887 GB, free: 10.91 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001271/0.1378, allocations: 51.89 kB / 0.4888 GB, free: 10.86 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001187/0.1379, allocations: 12 kB / 0.4888 GB, free: 10.85 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.426e-05/0.1379, allocations: 15.92 kB / 0.4888 GB, free: 10.84 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.593e-05/0.138, allocations: 15.92 kB / 0.4888 GB, free: 10.82 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.751e-05/0.138, allocations: 4 kB / 0.4888 GB, free: 10.82 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.062e-05/0.138, allocations: 0 / 0.4888 GB, free: 10.82 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.37e-05/0.1381, allocations: 11.94 kB / 0.4889 GB, free: 10.8 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.909e-05/0.1381, allocations: 11.94 kB / 0.4889 GB, free: 10.79 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001139/0.1382, allocations: 43.81 kB / 0.4889 GB, free: 10.75 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.1382, allocations: 0 / 0.4889 GB, free: 10.75 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.736e-06/0.1382, allocations: 4 kB / 0.4889 GB, free: 10.75 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.045e-06/0.1382, allocations: 0 / 0.4889 GB, free: 10.75 MB / 382.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.0004345/0.1387, allocations: 351.3 kB / 0.4892 GB, free: 10.35 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.611e-05/0.1387, allocations: 11.89 kB / 0.4893 GB, free: 10.34 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.633e-05/0.1388, allocations: 4.938 kB / 0.4893 GB, free: 10.34 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002273/0.139, allocations: 184.2 kB / 0.4894 GB, free: 10.12 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.078e-05/0.139, allocations: 384 / 0.4894 GB, free: 10.12 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.034e-05/0.1391, allocations: 4.375 kB / 0.4894 GB, free: 10.11 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001304/0.1392, allocations: 54.25 kB / 0.4895 GB, free: 10.05 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.293e-06/0.1392, allocations: 192 / 0.4895 GB, free: 10.05 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.16e-05/0.1392, allocations: 3.938 kB / 0.4895 GB, free: 10.05 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.609e-06/0.1392, allocations: 0 / 0.4895 GB, free: 10.05 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.969e-05/0.1393, allocations: 23.91 kB / 0.4895 GB, free: 10.03 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00051/0.1398, allocations: 284.7 kB / 0.4898 GB, free: 9.699 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.649e-05/0.1399, allocations: 34.52 kB / 0.4898 GB, free: 9.656 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.665e-05/0.1399, allocations: 4.859 kB / 0.4898 GB, free: 9.648 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.011e-06/0.1399, allocations: 11.94 kB / 0.4898 GB, free: 9.637 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.243e-05/0.14, allocations: 51.39 kB / 0.4899 GB, free: 9.574 MB / 382.1 MB Notification: Performance of pre-optimization done (n=3): time 1.453e-06/0.14, allocations: 0 / 0.4899 GB, free: 9.574 MB / 382.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001523/0.1402, allocations: 53.59 kB / 0.4899 GB, free: 9.516 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.683e-05/0.1402, allocations: 55.34 kB / 0.49 GB, free: 9.449 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001011/0.1403, allocations: 117.8 kB / 0.4901 GB, free: 9.324 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.707e-05/0.1403, allocations: 29.7 kB / 0.4901 GB, free: 9.289 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.919e-05/0.1404, allocations: 92.12 kB / 0.4902 GB, free: 9.195 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.486e-05/0.1404, allocations: 7.844 kB / 0.4902 GB, free: 9.188 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.116e-05/0.1404, allocations: 17.72 kB / 0.4902 GB, free: 9.164 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001129/0.1406, allocations: 322.8 kB / 0.4906 GB, free: 8.84 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.805e-05/0.1406, allocations: 8 kB / 0.4906 GB, free: 8.832 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.271e-05/0.1406, allocations: 13.72 kB / 0.4906 GB, free: 8.812 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.562e-05/0.1407, allocations: 29.72 kB / 0.4906 GB, free: 8.777 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.677e-06/0.1407, allocations: 0 / 0.4906 GB, free: 8.777 MB / 382.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.476e-05/0.1407, allocations: 57.53 kB / 0.4907 GB, free: 8.715 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.508e-05/0.1408, allocations: 4 kB / 0.4907 GB, free: 8.711 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.641e-06/0.1408, allocations: 0 / 0.4907 GB, free: 8.711 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.455e-05/0.1408, allocations: 4 kB / 0.4907 GB, free: 8.707 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.112e-05/0.1408, allocations: 3.984 kB / 0.4907 GB, free: 8.703 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.016e-05/0.1408, allocations: 4 kB / 0.4907 GB, free: 8.699 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.526e-05/0.1409, allocations: 7.969 kB / 0.4907 GB, free: 8.691 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.761e-06/0.1409, allocations: 3.938 kB / 0.4907 GB, free: 8.688 MB / 382.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.958e-05/0.141, allocations: 117.8 kB / 0.4908 GB, free: 8.562 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.238e-05/0.141, allocations: 7.906 kB / 0.4908 GB, free: 8.555 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.328e-05/0.141, allocations: 7.906 kB / 0.4908 GB, free: 8.539 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.413e-06/0.141, allocations: 0 / 0.4908 GB, free: 8.539 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-06/0.141, allocations: 4 kB / 0.4908 GB, free: 8.535 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.308e-06/0.1411, allocations: 3.984 kB / 0.4908 GB, free: 8.531 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003389/0.1414, allocations: 298.6 kB / 0.4911 GB, free: 8.184 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.342e-05/0.1414, allocations: 0 / 0.4911 GB, free: 8.184 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.143e-05/0.1415, allocations: 7.938 kB / 0.4911 GB, free: 8.176 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.547e-06/0.1415, allocations: 4.359 kB / 0.4911 GB, free: 8.172 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.763e-06/0.1415, allocations: 0 / 0.4911 GB, free: 8.172 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.947e-06/0.1415, allocations: 3.938 kB / 0.4911 GB, free: 8.168 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.1415, allocations: 3.938 kB / 0.4911 GB, free: 8.164 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001335/0.1416, allocations: 151.8 kB / 0.4913 GB, free: 8 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.512e-05/0.1417, allocations: 85.25 kB / 0.4914 GB, free: 7.898 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.499e-05/0.1418, allocations: 3.984 kB / 0.4914 GB, free: 7.895 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.643e-05/0.1418, allocations: 3.938 kB / 0.4914 GB, free: 7.891 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.465e-05/0.1419, allocations: 7.984 kB / 0.4914 GB, free: 7.883 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.419e-06/0.1419, allocations: 0 / 0.4914 GB, free: 7.883 MB / 382.1 MB Notification: Performance of sorting global known variables: time 5.005e-05/0.1419, allocations: 95.27 kB / 0.4915 GB, free: 7.789 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1419, allocations: 3.938 kB / 0.4915 GB, free: 7.785 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002072/0.1421, allocations: 4 kB / 0.4915 GB, free: 7.781 MB / 382.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 9.996e-05/0.1423, allocations: 99.25 kB / 0.4916 GB, free: 7.676 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 9.07e-05/0.1424, allocations: 12 kB / 0.4916 GB, free: 7.664 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.1424, allocations: 0 / 0.4916 GB, free: 7.664 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 2.107e-05/0.1424, allocations: 15.98 kB / 0.4916 GB, free: 7.648 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002714/0.1427, allocations: 7.938 kB / 0.4916 GB, free: 7.641 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003755/0.143, allocations: 149.9 kB / 0.4917 GB, free: 7.469 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002477/0.1433, allocations: 0.6872 MB / 0.4924 GB, free: 6.758 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 1.919e-05/0.1433, allocations: 4.062 kB / 0.4924 GB, free: 6.754 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.061e-05/0.1434, allocations: 15.42 kB / 0.4924 GB, free: 6.738 MB / 382.1 MB Notification: Performance of SimCode: time 2e-07/0.1434, allocations: 0 / 0.4924 GB, free: 6.738 MB / 382.1 MB Notification: Performance of Templates: time 0.002601/0.146, allocations: 0.5126 MB / 0.4929 GB, free: 6.227 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.sim & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/SelfResettingIntegrator/SelfResettingIntegrator.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches