Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Utilities.Math.Examples.IntegratorWithReset.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.001162/0.001162, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 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.0009363/0.0009363, allocations: 169.9 kB / 22.46 MB, free: 2.105 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.8979/0.8979, allocations: 177.1 MB / 202.8 MB, free: 5.73 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 1.641/1.641, allocations: 359 MB / 0.6037 GB, free: 11.07 MB / 0.573 GB " [Timeout remaining time 178] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/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(Buildings.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="Buildings_11_Buildings_Utilities_Math_Examples_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="Buildings_11_Buildings_Utilities_Math_Examples_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.754e-06/1.754e-06, allocations: 0 / 0.9505 GB, free: 2.328 MB / 0.8542 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.882e-05/2.057e-05, allocations: 2.281 kB / 0.9505 GB, free: 2.324 MB / 0.8542 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.002283/0.002303, allocations: 1.783 MB / 0.9523 GB, free: 0.5195 MB / 0.8542 GB Notification: Performance of NFInst.instExpressions: time 0.000877/0.00318, allocations: 0.5494 MB / 0.9528 GB, free: 15.96 MB / 0.8698 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.298e-05/0.003273, allocations: 11.88 kB / 0.9528 GB, free: 15.95 MB / 0.8698 GB Notification: Performance of NFTyping.typeComponents: time 0.0001251/0.003398, allocations: 23.73 kB / 0.9528 GB, free: 15.93 MB / 0.8698 GB Notification: Performance of NFTyping.typeBindings: time 6.436e-05/0.003463, allocations: 31.72 kB / 0.9529 GB, free: 15.9 MB / 0.8698 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001951/0.003658, allocations: 63.8 kB / 0.9529 GB, free: 15.84 MB / 0.8698 GB Notification: Performance of NFFlatten.flatten: time 0.0001838/0.003842, allocations: 183.4 kB / 0.9531 GB, free: 15.66 MB / 0.8698 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001244/0.003966, allocations: 25.8 kB / 0.9531 GB, free: 15.63 MB / 0.8698 GB Notification: Performance of NFEvalConstants.evaluate: time 9.546e-05/0.004061, allocations: 83.73 kB / 0.9532 GB, free: 15.55 MB / 0.8698 GB Notification: Performance of NFSimplifyModel.simplify: time 5.673e-05/0.004118, allocations: 47.81 kB / 0.9532 GB, free: 15.5 MB / 0.8698 GB Notification: Performance of NFPackage.collectConstants: time 2.693e-05/0.004145, allocations: 12 kB / 0.9533 GB, free: 15.49 MB / 0.8698 GB Notification: Performance of NFFlatten.collectFunctions: time 1.491e-05/0.00416, allocations: 15.94 kB / 0.9533 GB, free: 15.47 MB / 0.8698 GB Notification: Performance of NFScalarize.scalarize: time 2.703e-05/0.004187, allocations: 19.92 kB / 0.9533 GB, free: 15.45 MB / 0.8698 GB Notification: Performance of NFVerifyModel.verify: time 4.557e-05/0.004233, allocations: 47.83 kB / 0.9533 GB, free: 15.41 MB / 0.8698 GB Notification: Performance of NFConvertDAE.convert: time 0.0001594/0.004392, allocations: 131.5 kB / 0.9535 GB, free: 15.28 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 3.356e-06/0.004395, allocations: 0 / 0.9535 GB, free: 15.28 MB / 0.8698 GB Notification: Performance of FrontEnd: time 1.432e-06/0.004397, allocations: 0 / 0.9535 GB, free: 15.28 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 4.368e-06/0.004401, allocations: 0 / 0.9535 GB, free: 15.28 MB / 0.8698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0005338/0.004935, allocations: 431.1 kB / 0.9539 GB, free: 14.82 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 3.868e-05/0.004974, allocations: 12.03 kB / 0.9539 GB, free: 14.81 MB / 0.8698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.388e-05/0.005008, allocations: 42.73 kB / 0.9539 GB, free: 14.76 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.492e-05/0.005042, allocations: 20.84 kB / 0.9539 GB, free: 14.74 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002332/0.005276, allocations: 173.4 kB / 0.9541 GB, free: 14.54 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.229e-05/0.005288, allocations: 8.375 kB / 0.9541 GB, free: 14.54 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.594e-05/0.005314, allocations: 12.38 kB / 0.9541 GB, free: 14.52 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000211/0.005525, allocations: 156 kB / 0.9543 GB, free: 14.35 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.055e-06/0.005533, allocations: 192 / 0.9543 GB, free: 14.35 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.25e-05/0.005545, allocations: 12.06 kB / 0.9543 GB, free: 14.34 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.789e-06/0.00555, allocations: 0 / 0.9543 GB, free: 14.34 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001335/0.005684, allocations: 75.88 kB / 0.9544 GB, free: 14.27 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006626/0.006346, allocations: 0.6801 MB / 0.955 GB, free: 13.53 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 9.833e-05/0.006445, allocations: 50.48 kB / 0.9551 GB, free: 13.47 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.756e-05/0.006502, allocations: 36.83 kB / 0.9551 GB, free: 13.43 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 1.99e-05/0.006522, allocations: 0 / 0.9551 GB, free: 13.43 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001563/0.006678, allocations: 114.8 kB / 0.9552 GB, free: 13.29 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=11): time 8.31e-07/0.006679, allocations: 0 / 0.9552 GB, free: 13.29 MB / 0.8698 GB Notification: Performance of matching and sorting (n=11): time 0.0003082/0.006987, allocations: 177.7 kB / 0.9554 GB, free: 13.11 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.43e-05/0.007042, allocations: 132.5 kB / 0.9555 GB, free: 12.95 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001336/0.007175, allocations: 202.8 kB / 0.9557 GB, free: 12.75 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 1.426e-05/0.00719, allocations: 29.7 kB / 0.9557 GB, free: 12.71 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 6.395e-05/0.007254, allocations: 135.9 kB / 0.9559 GB, free: 12.57 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 2.616e-05/0.00728, allocations: 39.67 kB / 0.9559 GB, free: 12.54 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.497e-05/0.007325, allocations: 41.67 kB / 0.9559 GB, free: 12.49 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 7.991e-05/0.007405, allocations: 330.8 kB / 0.9563 GB, free: 12.16 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.131e-05/0.007476, allocations: 35.97 kB / 0.9563 GB, free: 12.12 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001021/0.007578, allocations: 144.1 kB / 0.9564 GB, free: 11.93 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000183/0.007761, allocations: 206.3 kB / 0.9566 GB, free: 11.68 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.007764, allocations: 3.938 kB / 0.9566 GB, free: 11.67 MB / 0.8698 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002278/0.007992, allocations: 205.2 kB / 0.9568 GB, free: 11.46 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.331e-05/0.008005, allocations: 8 kB / 0.9568 GB, free: 11.46 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.921e-06/0.008011, allocations: 4 kB / 0.9568 GB, free: 11.45 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.282e-05/0.008024, allocations: 4.5 kB / 0.9568 GB, free: 11.45 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.968e-05/0.008094, allocations: 39.91 kB / 0.9569 GB, free: 11.41 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.535e-06/0.008101, allocations: 11.94 kB / 0.9569 GB, free: 11.4 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.639e-05/0.008178, allocations: 31.81 kB / 0.9569 GB, free: 11.37 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.688e-06/0.008187, allocations: 8 kB / 0.9569 GB, free: 11.36 MB / 0.8698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 9 (sampleTrigger.y,$whenCondition2,$whenCondition1,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,booleanPulse.y,$whenCondition3,intDef.trigger_internal,intNoReset.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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.145e-05/0.008269, allocations: 136 kB / 0.9571 GB, free: 11.22 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.018e-05/0.008289, allocations: 27.84 kB / 0.9571 GB, free: 11.19 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.728e-05/0.008316, allocations: 21.45 kB / 0.9571 GB, free: 11.18 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.506e-06/0.00832, allocations: 4 kB / 0.9571 GB, free: 11.17 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.008324, allocations: 0 / 0.9571 GB, free: 11.17 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.326e-06/0.008327, allocations: 4 kB / 0.9571 GB, free: 11.17 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006375/0.008965, allocations: 488.8 kB / 0.9576 GB, free: 10.64 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.323e-06/0.008966, allocations: 0 / 0.9576 GB, free: 10.64 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.085e-05/0.009027, allocations: 23.92 kB / 0.9576 GB, free: 10.62 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.234e-06/0.009029, allocations: 0 / 0.9576 GB, free: 10.62 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.01e-05/0.009039, allocations: 4 kB / 0.9576 GB, free: 10.61 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.833e-06/0.009041, allocations: 0 / 0.9576 GB, free: 10.61 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/0.009043, allocations: 4 kB / 0.9576 GB, free: 10.61 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002951/0.009338, allocations: 364.1 kB / 0.958 GB, free: 10.23 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 1.808e-05/0.009356, allocations: 15.91 kB / 0.958 GB, free: 10.21 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.648e-05/0.009373, allocations: 4.031 kB / 0.958 GB, free: 10.21 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.711e-05/0.00946, allocations: 15.98 kB / 0.958 GB, free: 10.2 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.962e-05/0.0095, allocations: 12.05 kB / 0.958 GB, free: 10.18 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.386e-06/0.009508, allocations: 12 kB / 0.958 GB, free: 10.17 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 7.437e-05/0.009582, allocations: 144.4 kB / 0.9581 GB, free: 10.03 MB / 0.8698 GB Notification: Performance of sort global known variables: time 6e-08/0.009582, allocations: 4 kB / 0.9582 GB, free: 10.03 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0002253/0.009808, allocations: 31.95 kB / 0.9582 GB, free: 9.996 MB / 0.8698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (intWitRes2.y,intWitRes1.y,intNoReset.y,intDef.y) * Number of discrete variables: 6 (booleanPulse.y,$whenCondition3,$whenCondition1,booleanPulse.pulseStart,sampleTrigger.y,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0004529/0.01026, allocations: 0.8781 MB / 0.959 GB, free: 9.086 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.0001964/0.01046, allocations: 124 kB / 0.9592 GB, free: 8.965 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.01046, allocations: 0 / 0.9592 GB, free: 8.965 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 7.921e-05/0.01054, allocations: 47.91 kB / 0.9592 GB, free: 8.918 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003505/0.01089, allocations: 73.16 kB / 0.9593 GB, free: 8.852 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001625/0.01251, allocations: 2.245 MB / 0.9615 GB, free: 6.414 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.307e-05/0.01259, allocations: 112.7 kB / 0.9616 GB, free: 6.281 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 6.101e-05/0.01265, allocations: 21.47 kB / 0.9616 GB, free: 6.262 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.409e-05/0.01271, allocations: 48.48 kB / 0.9616 GB, free: 6.215 MB / 0.8698 GB Notification: Performance of SimCode: time 4.01e-07/0.01271, allocations: 4 kB / 0.9616 GB, free: 6.211 MB / 0.8698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01789/0.0306, allocations: 4.908 MB / 0.9664 GB, free: 1.496 MB / 0.8698 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.015/7.046, allocations: 1.125 kB / 0.9664 GB, free: 1.496 MB / 0.8698 GB " [Timeout remaining time 293] (rm -f Buildings_11_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo Buildings_11_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/Buildings_11_Buildings.Utilities.Math.Examples.IntegratorWithReset.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Utilities.Math.Examples.IntegratorWithReset_res.mat --tempDir=temp_Buildings_11_Buildings_Utilities_Math_Examples_IntegratorWithReset_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Utilities_Math_Examples_IntegratorWithReset.fmu > Buildings_11_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Utilities.Math.Examples.IntegratorWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Math_Examples_IntegratorWithReset.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Utilities.Math.Examples.IntegratorWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 10.887874599546194]