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.001092/0.001092, allocations: 115.7 kB / 17.08 MB, free: 6.008 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.001218/0.001218, allocations: 195 kB / 18.01 MB, free: 5.094 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.344/1.344, allocations: 205.1 MB / 223.9 MB, free: 12.25 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.1932/0.1932, allocations: 43.52 MB / 314.8 MB, free: 460 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.001378/0.001378, allocations: 75.89 kB / 442.5 MB, free: 5.676 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09785/0.09924, allocations: 57.78 MB / 0.4885 GB, free: 11.82 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.00206/0.1013, allocations: 0.8216 MB / 0.4893 GB, free: 11.01 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002254/0.1016, allocations: 47.81 kB / 0.4894 GB, free: 10.96 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.586e-05/0.1017, allocations: 7.938 kB / 0.4894 GB, free: 10.95 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001035/0.1018, allocations: 7.922 kB / 0.4894 GB, free: 10.95 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 2.506e-05/0.1018, allocations: 3.938 kB / 0.4894 GB, free: 10.94 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000111/0.1019, allocations: 15.98 kB / 0.4894 GB, free: 10.93 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001035/0.102, allocations: 43.91 kB / 0.4894 GB, free: 10.88 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001102/0.1022, allocations: 19.98 kB / 0.4895 GB, free: 10.86 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.833e-05/0.1022, allocations: 11.92 kB / 0.4895 GB, free: 10.85 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.839e-05/0.1022, allocations: 11.92 kB / 0.4895 GB, free: 10.84 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.992e-05/0.1023, allocations: 4 kB / 0.4895 GB, free: 10.84 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.748e-06/0.1023, allocations: 4 kB / 0.4895 GB, free: 10.83 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.018e-05/0.1023, allocations: 11.92 kB / 0.4895 GB, free: 10.82 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.13e-05/0.1023, allocations: 15.94 kB / 0.4895 GB, free: 10.8 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001032/0.1025, allocations: 43.78 kB / 0.4896 GB, free: 10.76 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.48e-06/0.1025, allocations: 3.984 kB / 0.4896 GB, free: 10.76 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.1025, allocations: 4 kB / 0.4896 GB, free: 10.75 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.22e-06/0.1025, allocations: 0 / 0.4896 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.0004182/0.1029, allocations: 346.8 kB / 0.4899 GB, free: 10.37 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.368e-05/0.103, allocations: 15.89 kB / 0.4899 GB, free: 10.35 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.674e-05/0.103, allocations: 8.922 kB / 0.4899 GB, free: 10.34 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002238/0.1032, allocations: 176.2 kB / 0.4901 GB, free: 10.13 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.207e-05/0.1032, allocations: 8.375 kB / 0.4901 GB, free: 10.12 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.721e-05/0.1033, allocations: 384 / 0.4901 GB, free: 10.12 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001097/0.1034, allocations: 54.25 kB / 0.4902 GB, free: 10.07 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.847e-06/0.1034, allocations: 192 / 0.4902 GB, free: 10.07 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.138e-05/0.1034, allocations: 7.875 kB / 0.4902 GB, free: 10.06 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.41e-06/0.1034, allocations: 4 kB / 0.4902 GB, free: 10.05 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.487e-05/0.1035, allocations: 19.92 kB / 0.4902 GB, free: 10.04 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004685/0.1039, allocations: 280.8 kB / 0.4905 GB, free: 9.711 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.582e-05/0.104, allocations: 34.44 kB / 0.4905 GB, free: 9.668 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.968e-05/0.104, allocations: 12.92 kB / 0.4905 GB, free: 9.652 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.596e-06/0.1041, allocations: 0 / 0.4905 GB, free: 9.652 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.963e-05/0.1041, allocations: 51.41 kB / 0.4905 GB, free: 9.59 MB / 382.1 MB Notification: Performance of pre-optimization done (n=3): time 9.01e-07/0.1041, allocations: 0 / 0.4905 GB, free: 9.59 MB / 382.1 MB Notification: Performance of matching and sorting (n=3): time 0.000123/0.1043, allocations: 53.53 kB / 0.4906 GB, free: 9.531 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.95e-05/0.1043, allocations: 51.41 kB / 0.4906 GB, free: 9.469 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.801e-05/0.1044, allocations: 121.8 kB / 0.4908 GB, free: 9.34 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.286e-05/0.1044, allocations: 25.7 kB / 0.4908 GB, free: 9.309 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.017e-05/0.1045, allocations: 88.12 kB / 0.4909 GB, free: 9.219 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.353e-05/0.1045, allocations: 19.91 kB / 0.4909 GB, free: 9.199 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.834e-05/0.1045, allocations: 13.72 kB / 0.4909 GB, free: 9.18 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001013/0.1046, allocations: 318.8 kB / 0.4912 GB, free: 8.859 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.814e-05/0.1047, allocations: 7.984 kB / 0.4912 GB, free: 8.852 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.346e-05/0.1047, allocations: 17.72 kB / 0.4912 GB, free: 8.828 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.725e-05/0.1047, allocations: 29.66 kB / 0.4913 GB, free: 8.793 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.1047, allocations: 0 / 0.4913 GB, free: 8.793 MB / 382.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 8.541e-05/0.1048, allocations: 57.92 kB / 0.4913 GB, free: 8.73 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.324e-05/0.1048, allocations: 8 kB / 0.4913 GB, free: 8.723 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.01e-06/0.1049, allocations: 3.984 kB / 0.4913 GB, free: 8.719 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.181e-05/0.1049, allocations: 0 / 0.4913 GB, free: 8.719 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.37e-05/0.1049, allocations: 7.938 kB / 0.4913 GB, free: 8.711 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.751e-06/0.1049, allocations: 4 kB / 0.4913 GB, free: 8.707 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.905e-05/0.105, allocations: 8.016 kB / 0.4913 GB, free: 8.699 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.879e-06/0.105, allocations: 7.938 kB / 0.4914 GB, free: 8.691 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 6.666e-05/0.105, allocations: 117.8 kB / 0.4915 GB, free: 8.566 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.122e-05/0.1051, allocations: 3.906 kB / 0.4915 GB, free: 8.562 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.998e-05/0.1051, allocations: 3.906 kB / 0.4915 GB, free: 8.551 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.453e-06/0.1051, allocations: 4 kB / 0.4915 GB, free: 8.547 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.676e-06/0.1051, allocations: 0 / 0.4915 GB, free: 8.547 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.285e-06/0.1051, allocations: 384 / 0.4915 GB, free: 8.547 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002715/0.1054, allocations: 302.5 kB / 0.4918 GB, free: 8.195 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.1054, allocations: 4 kB / 0.4918 GB, free: 8.191 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.02e-05/0.1054, allocations: 4 kB / 0.4918 GB, free: 8.188 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.116e-06/0.1054, allocations: 3.938 kB / 0.4918 GB, free: 8.184 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.423e-06/0.1054, allocations: 3.938 kB / 0.4918 GB, free: 8.18 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.715e-06/0.1055, allocations: 3.938 kB / 0.4918 GB, free: 8.176 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.1055, allocations: 4 kB / 0.4918 GB, free: 8.172 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001367/0.1056, allocations: 151.4 kB / 0.4919 GB, free: 8.008 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.484e-05/0.1056, allocations: 81.17 kB / 0.492 GB, free: 7.91 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.137e-05/0.1057, allocations: 0 / 0.492 GB, free: 7.91 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.736e-05/0.1057, allocations: 7.969 kB / 0.492 GB, free: 7.902 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.159e-05/0.1058, allocations: 3.984 kB / 0.492 GB, free: 7.898 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.12e-06/0.1058, allocations: 0 / 0.492 GB, free: 7.898 MB / 382.1 MB Notification: Performance of sorting global known variables: time 4.511e-05/0.1058, allocations: 91.22 kB / 0.4921 GB, free: 7.809 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1058, allocations: 4 kB / 0.4921 GB, free: 7.805 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002158/0.106, allocations: 8 kB / 0.4921 GB, free: 7.797 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 8.891e-05/0.1061, allocations: 99.23 kB / 0.4922 GB, free: 7.691 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 7.557e-05/0.1062, allocations: 16 kB / 0.4922 GB, free: 7.676 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.734e-06/0.1062, allocations: 0 / 0.4922 GB, free: 7.676 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 1.906e-05/0.1062, allocations: 11.92 kB / 0.4922 GB, free: 7.664 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002545/0.1065, allocations: 14.66 kB / 0.4923 GB, free: 7.652 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002955/0.1068, allocations: 175.6 kB / 0.4924 GB, free: 7.449 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002376/0.1071, allocations: 0.6807 MB / 0.4931 GB, free: 6.742 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.264e-05/0.1071, allocations: 15.5 kB / 0.4931 GB, free: 6.727 MB / 382.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1071, allocations: 0 / 0.4931 GB, free: 6.727 MB / 382.1 MB Notification: Performance of Templates: time 0.001875/0.109, allocations: 0.7541 MB / 0.4938 GB, free: 5.969 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/SelfResettingIntegrator/SelfResettingIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches