Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001174/0.001174, allocations: 91.67 kB / 20.68 MB, free: 3.871 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001394/0.001394, allocations: 166 kB / 23.95 MB, free: 0.5977 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9459/0.9459, allocations: 177.1 MB / 204.3 MB, free: 5.711 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2556/0.2556, allocations: 32.78 MB / 293.5 MB, free: 1.207 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.SelfResettingIntegrator,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_SelfResettingIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.SelfResettingIntegrator,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_SelfResettingIntegrator",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 9.52e-07/9.52e-07, allocations: 0 / 439.6 MB, free: 4.254 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.796e-05/1.892e-05, allocations: 4.109 kB / 439.6 MB, free: 4.25 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.001507/0.001526, allocations: 0.8189 MB / 440.4 MB, free: 3.43 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.000122/0.001648, allocations: 47.83 kB / 440.4 MB, free: 3.383 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.622e-05/0.001714, allocations: 3.938 kB / 440.4 MB, free: 3.379 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001238/0.001838, allocations: 3.938 kB / 440.4 MB, free: 3.375 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 1.678e-05/0.001855, allocations: 0 / 440.4 MB, free: 3.375 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001372/0.001992, allocations: 15.92 kB / 440.5 MB, free: 3.359 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001197/0.002111, allocations: 51.83 kB / 440.5 MB, free: 3.309 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001278/0.002239, allocations: 8 kB / 440.5 MB, free: 3.301 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.774e-05/0.002287, allocations: 19.92 kB / 440.5 MB, free: 3.281 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.689e-05/0.002334, allocations: 3.984 kB / 440.5 MB, free: 3.277 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 2.84e-05/0.002362, allocations: 8 kB / 440.5 MB, free: 3.27 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.241e-05/0.002375, allocations: 4 kB / 440.5 MB, free: 3.266 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 2.448e-05/0.002399, allocations: 11.92 kB / 440.6 MB, free: 3.254 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 2.677e-05/0.002426, allocations: 11.98 kB / 440.6 MB, free: 3.242 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001187/0.002545, allocations: 31.89 kB / 440.6 MB, free: 3.211 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.814e-06/0.002546, allocations: 0 / 440.6 MB, free: 3.211 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.112e-06/0.002548, allocations: 0 / 440.6 MB, free: 3.211 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.619e-06/0.002552, allocations: 0 / 440.6 MB, free: 3.211 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.0004118/0.002964, allocations: 283.1 kB / 440.9 MB, free: 2.898 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.492e-05/0.003009, allocations: 8.031 kB / 440.9 MB, free: 2.891 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.668e-05/0.003046, allocations: 42.73 kB / 440.9 MB, free: 2.84 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.621e-05/0.003072, allocations: 8.891 kB / 440.9 MB, free: 2.832 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002048/0.003277, allocations: 125.7 kB / 441.1 MB, free: 2.684 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.466e-06/0.003285, allocations: 384 / 441.1 MB, free: 2.684 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.065e-05/0.003306, allocations: 4.375 kB / 441.1 MB, free: 2.68 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001209/0.003427, allocations: 50.25 kB / 441.1 MB, free: 2.625 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.126e-05/0.003438, allocations: 192 / 441.1 MB, free: 2.625 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.588e-06/0.003448, allocations: 384 / 441.1 MB, free: 2.625 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.703e-06/0.003454, allocations: 4.125 kB / 441.1 MB, free: 2.621 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.677e-05/0.003501, allocations: 19.92 kB / 441.1 MB, free: 2.602 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004851/0.003986, allocations: 263.8 kB / 441.4 MB, free: 2.301 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.602e-05/0.004042, allocations: 18.58 kB / 441.4 MB, free: 2.273 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.762e-05/0.00406, allocations: 12.8 kB / 441.4 MB, free: 2.258 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.035e-05/0.00407, allocations: 4.062 kB / 441.4 MB, free: 2.254 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.589e-05/0.004146, allocations: 55.3 kB / 441.5 MB, free: 2.188 MB / 410.7 MB Notification: Performance of pre-optimization done (n=3): time 1.403e-06/0.004147, allocations: 4 kB / 441.5 MB, free: 2.184 MB / 410.7 MB Notification: Performance of matching and sorting (n=3): time 0.0001347/0.004282, allocations: 45.69 kB / 441.5 MB, free: 2.133 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.71e-05/0.004319, allocations: 51.41 kB / 441.6 MB, free: 2.07 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.953e-05/0.004409, allocations: 121.8 kB / 441.7 MB, free: 1.941 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.596e-05/0.004425, allocations: 29.7 kB / 441.7 MB, free: 1.906 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.416e-05/0.004479, allocations: 88.09 kB / 441.8 MB, free: 1.816 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.696e-05/0.004496, allocations: 11.89 kB / 441.8 MB, free: 1.805 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.033e-05/0.004526, allocations: 21.7 kB / 441.8 MB, free: 1.777 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001039/0.00463, allocations: 318.8 kB / 442.2 MB, free: 1.457 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.545e-05/0.004645, allocations: 4 kB / 442.2 MB, free: 1.453 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.628e-05/0.004672, allocations: 25.64 kB / 442.2 MB, free: 1.422 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.668e-05/0.004708, allocations: 21.72 kB / 442.2 MB, free: 1.395 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.415e-06/0.004711, allocations: 4 kB / 442.2 MB, free: 1.391 MB / 410.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.068e-05/0.004782, allocations: 57.95 kB / 442.3 MB, free: 1.328 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.628e-05/0.004798, allocations: 8 kB / 442.3 MB, free: 1.32 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.532e-06/0.004804, allocations: 0 / 442.3 MB, free: 1.32 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.282e-05/0.004817, allocations: 0 / 442.3 MB, free: 1.32 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.565e-05/0.004853, allocations: 4 kB / 442.3 MB, free: 1.316 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.025e-06/0.004861, allocations: 0 / 442.3 MB, free: 1.316 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.462e-05/0.004885, allocations: 7.953 kB / 442.3 MB, free: 1.309 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.468e-06/0.00489, allocations: 0 / 442.3 MB, free: 1.309 MB / 410.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 (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.101e-05/0.004971, allocations: 125.8 kB / 442.4 MB, free: 1.176 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.362e-06/0.004977, allocations: 0 / 442.4 MB, free: 1.176 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.715e-05/0.005004, allocations: 16.02 kB / 442.4 MB, free: 1.156 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.775e-06/0.005007, allocations: 0 / 442.4 MB, free: 1.156 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.402e-06/0.005014, allocations: 0 / 442.4 MB, free: 1.156 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.779e-06/0.005018, allocations: 0 / 442.4 MB, free: 1.156 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000254/0.005272, allocations: 273.5 kB / 442.7 MB, free: 0.8398 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.005273, allocations: 0 / 442.7 MB, free: 0.8398 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.472e-05/0.005298, allocations: 4.312 kB / 442.7 MB, free: 0.8359 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.926e-06/0.005301, allocations: 4 kB / 442.7 MB, free: 0.832 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.617e-06/0.00531, allocations: 0 / 442.7 MB, free: 0.832 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.005311, allocations: 0 / 442.7 MB, free: 0.832 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.71e-07/0.005312, allocations: 3.938 kB / 442.7 MB, free: 0.8281 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001313/0.005443, allocations: 159.4 kB / 442.9 MB, free: 0.6562 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.292e-05/0.005456, allocations: 11.97 kB / 442.9 MB, free: 0.6445 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.03e-05/0.005466, allocations: 0 / 442.9 MB, free: 0.6445 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.798e-05/0.005494, allocations: 0 / 442.9 MB, free: 0.6445 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.94e-05/0.005533, allocations: 11.94 kB / 442.9 MB, free: 0.6328 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.291e-06/0.00554, allocations: 0 / 442.9 MB, free: 0.6328 MB / 410.7 MB Notification: Performance of sorting global known variables: time 4.348e-05/0.005583, allocations: 91.27 kB / 443 MB, free: 0.543 MB / 410.7 MB Notification: Performance of sort global known variables: time 6e-08/0.005583, allocations: 0 / 443 MB, free: 0.543 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0001498/0.005733, allocations: 8 kB / 443 MB, free: 0.5352 MB / 410.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 (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.189/0.1947, allocations: 0.6756 MB / 443.7 MB, free: 45.71 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0001194/0.1948, allocations: 21.45 kB / 443.7 MB, free: 45.71 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.1948, allocations: 0 / 443.7 MB, free: 45.71 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 2.017e-05/0.1948, allocations: 10.47 kB / 443.7 MB, free: 45.71 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002501/0.1951, allocations: 15.5 kB / 443.7 MB, free: 45.71 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008626/0.196, allocations: 1.278 MB / 445 MB, free: 44.56 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.38e-05/0.196, allocations: 75 kB / 445.1 MB, free: 44.49 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 2.05e-05/0.196, allocations: 2.781 kB / 445.1 MB, free: 44.49 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.44e-05/0.1961, allocations: 23.02 kB / 445.1 MB, free: 44.49 MB / 410.7 MB Notification: Performance of SimCode: time 7.92e-07/0.1961, allocations: 0 / 445.1 MB, free: 44.49 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01657/0.2126, allocations: 2.246 MB / 447.3 MB, free: 43.66 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.576/6.789, allocations: 2.078 kB / 447.3 MB, free: 43.66 MB / 410.7 MB " [Timeout remaining time 653] (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Blocks_SelfResettingIntegrator_fmu --startTime=0 --stopTime=5 --stepSize=0.000998004 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Blocks_SelfResettingIntegrator.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_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: 8.81794770527631]