Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.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.001366/0.001366, allocations: 116.1 kB / 17.17 MB, free: 6 MB / 14.72 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.001586/0.001586, allocations: 209.5 kB / 20.13 MB, free: 3.055 MB / 14.72 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 1.516/1.516, allocations: 230.6 MB / 253.5 MB, free: 15.11 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 2.904/2.904, allocations: 0.49 GB / 0.7923 GB, free: 1.461 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.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.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Reals_Validation_IntegratorWithReset",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Reals_Validation_IntegratorWithReset",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002342/0.002342, allocations: 63.91 kB / 1.15 GB, free: 15.39 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9937/0.996, allocations: 176.1 MB / 1.322 GB, free: 24.83 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset): time 0.001995/0.998, allocations: 0.8903 MB / 1.322 GB, free: 24.25 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001493/0.9995, allocations: 1.212 MB / 1.324 GB, free: 23.36 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.773e-05/0.9996, allocations: 6.688 kB / 1.324 GB, free: 23.36 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 4.249e-05/0.9996, allocations: 11.16 kB / 1.324 GB, free: 23.35 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0001029/0.9997, allocations: 14.56 kB / 1.324 GB, free: 23.34 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005193/1, allocations: 147.8 kB / 1.324 GB, free: 23.26 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0001876/1, allocations: 181.8 kB / 1.324 GB, free: 23.18 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001217/1.001, allocations: 29.02 kB / 1.324 GB, free: 23.16 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001031/1.001, allocations: 65.11 kB / 1.324 GB, free: 23.13 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001028/1.001, allocations: 68.16 kB / 1.324 GB, free: 23.1 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 2.773e-05/1.001, allocations: 16.19 kB / 1.324 GB, free: 23.1 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 7.212e-05/1.001, allocations: 29.17 kB / 1.324 GB, free: 23.09 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 2.746e-05/1.001, allocations: 27.75 kB / 1.324 GB, free: 23.08 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 6.407e-05/1.001, allocations: 64.97 kB / 1.324 GB, free: 23.04 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0001961/1.001, allocations: 172.2 kB / 1.324 GB, free: 22.97 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.419e-06/1.001, allocations: 0 / 1.324 GB, free: 22.97 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.793e-06/1.001, allocations: 0 / 1.324 GB, free: 22.97 MB / 1.061 GB Notification: Performance of Transformations before backend: time 5.911e-06/1.001, allocations: 4 kB / 1.324 GB, free: 22.97 MB / 1.061 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0006304/1.002, allocations: 462.1 kB / 1.325 GB, free: 22.53 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 5.9e-05/1.002, allocations: 12.23 kB / 1.325 GB, free: 22.53 MB / 1.061 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.841e-05/1.002, allocations: 7 kB / 1.325 GB, free: 22.52 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.929e-05/1.002, allocations: 40.98 kB / 1.325 GB, free: 22.48 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.016e-05/1.002, allocations: 13.55 kB / 1.325 GB, free: 22.48 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005556/1.003, allocations: 248.9 kB / 1.325 GB, free: 22.26 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.549e-05/1.003, allocations: 7.062 kB / 1.325 GB, free: 22.25 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.534e-05/1.003, allocations: 11.19 kB / 1.325 GB, free: 22.25 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002304/1.003, allocations: 95.36 kB / 1.325 GB, free: 22.2 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.628e-06/1.003, allocations: 0 / 1.325 GB, free: 22.2 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.431e-05/1.003, allocations: 6.531 kB / 1.325 GB, free: 22.2 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.939e-06/1.003, allocations: 3.938 kB / 1.325 GB, free: 22.19 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001755/1.003, allocations: 53.59 kB / 1.325 GB, free: 22.18 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006289/1.004, allocations: 382.4 kB / 1.326 GB, free: 21.86 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001204/1.004, allocations: 36.33 kB / 1.326 GB, free: 21.84 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.083e-05/1.004, allocations: 30.83 kB / 1.326 GB, free: 21.82 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 2.06e-05/1.004, allocations: 6.906 kB / 1.326 GB, free: 21.82 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002726/1.004, allocations: 95.61 kB / 1.326 GB, free: 21.75 MB / 1.061 GB Notification: Performance of pre-optimization done (n=10): time 1.353e-06/1.004, allocations: 0 / 1.326 GB, free: 21.75 MB / 1.061 GB Notification: Performance of matching and sorting (n=10): time 0.0004662/1.005, allocations: 145.4 kB / 1.326 GB, free: 21.69 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.757e-05/1.005, allocations: 54.06 kB / 1.326 GB, free: 21.62 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001168/1.005, allocations: 142.6 kB / 1.326 GB, free: 21.51 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 2.418e-05/1.005, allocations: 28.27 kB / 1.326 GB, free: 21.48 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 6.345e-05/1.005, allocations: 112.1 kB / 1.326 GB, free: 21.38 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 2.236e-05/1.005, allocations: 31.88 kB / 1.326 GB, free: 21.35 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.762e-05/1.005, allocations: 48.67 kB / 1.326 GB, free: 21.32 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 6.628e-05/1.005, allocations: 320.9 kB / 1.327 GB, free: 21.01 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001549/1.005, allocations: 54.84 kB / 1.327 GB, free: 20.99 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001818/1.005, allocations: 130.4 kB / 1.327 GB, free: 20.87 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002821/1.006, allocations: 194.9 kB / 1.327 GB, free: 20.7 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.456e-06/1.006, allocations: 0 / 1.327 GB, free: 20.7 MB / 1.061 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004499/1.006, allocations: 249.3 kB / 1.327 GB, free: 20.57 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 3.733e-05/1.006, allocations: 38.17 kB / 1.327 GB, free: 20.54 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.396e-06/1.006, allocations: 6.781 kB / 1.327 GB, free: 20.54 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.381e-05/1.006, allocations: 10.78 kB / 1.327 GB, free: 20.53 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001116/1.006, allocations: 29.83 kB / 1.327 GB, free: 20.52 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.837e-06/1.006, allocations: 6.625 kB / 1.327 GB, free: 20.52 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000227/1.007, allocations: 36.23 kB / 1.327 GB, free: 20.52 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.691e-05/1.007, allocations: 16.75 kB / 1.327 GB, free: 20.51 MB / 1.061 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 7 (booleanPulse.y,$PRE.booleanPulse.y,$whenCondition4,$whenCondition1,$whenCondition2,sampleTrigger.y,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 1 * 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.613e-05/1.007, allocations: 136.1 kB / 1.328 GB, free: 20.38 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.02e-05/1.007, allocations: 8.672 kB / 1.328 GB, free: 20.38 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.615e-05/1.007, allocations: 11.84 kB / 1.328 GB, free: 20.37 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.37e-06/1.007, allocations: 11.75 kB / 1.328 GB, free: 20.36 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.999e-06/1.007, allocations: 5.281 kB / 1.328 GB, free: 20.36 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/1.007, allocations: 0 / 1.328 GB, free: 20.36 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005263/1.007, allocations: 395.1 kB / 1.328 GB, free: 20.02 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.495e-06/1.007, allocations: 4.812 kB / 1.328 GB, free: 20.02 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.818e-05/1.007, allocations: 12.47 kB / 1.328 GB, free: 20.02 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.956e-06/1.007, allocations: 0.6875 kB / 1.328 GB, free: 20.02 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.391e-05/1.007, allocations: 13.03 kB / 1.328 GB, free: 20.01 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.853e-06/1.007, allocations: 0.625 kB / 1.328 GB, free: 20.01 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.714e-06/1.007, allocations: 0.6875 kB / 1.328 GB, free: 20.01 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000431/1.008, allocations: 244.7 kB / 1.328 GB, free: 19.84 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 2.95e-05/1.008, allocations: 90.88 kB / 1.328 GB, free: 19.74 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.971e-05/1.008, allocations: 2.344 kB / 1.328 GB, free: 19.74 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.315e-05/1.008, allocations: 14.69 kB / 1.328 GB, free: 19.73 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.796e-05/1.008, allocations: 6.875 kB / 1.328 GB, free: 19.73 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.558e-06/1.008, allocations: 7.75 kB / 1.328 GB, free: 19.73 MB / 1.061 GB Notification: Performance of sorting global known variables: time 5.527e-05/1.008, allocations: 105.8 kB / 1.328 GB, free: 19.64 MB / 1.061 GB Notification: Performance of sort global known variables: time 6e-08/1.008, allocations: 0 / 1.328 GB, free: 19.64 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0003215/1.008, allocations: 31.75 kB / 1.328 GB, free: 19.64 MB / 1.061 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (intDef.y,intWitRes1.y,intWitRes2.y) * Number of discrete variables: 6 (sampleTrigger.y,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,booleanPulse.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 9 * 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.0006273/1.009, allocations: 0.7835 MB / 1.329 GB, free: 18.94 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.000391/1.009, allocations: 168.4 kB / 1.329 GB, free: 18.85 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 3.356e-06/1.009, allocations: 4.812 kB / 1.329 GB, free: 18.84 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001248/1.009, allocations: 39.52 kB / 1.329 GB, free: 18.84 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002947/1.01, allocations: 22.03 kB / 1.329 GB, free: 18.83 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002192/1.012, allocations: 1.965 MB / 1.331 GB, free: 17.2 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001574/1.012, allocations: 0.7086 MB / 1.332 GB, free: 16.5 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 6.64e-05/1.012, allocations: 16.08 kB / 1.332 GB, free: 16.5 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.896e-05/1.012, allocations: 37.77 kB / 1.332 GB, free: 16.47 MB / 1.061 GB Notification: Performance of SimCode: time 7.81e-07/1.012, allocations: 0.9688 kB / 1.332 GB, free: 16.47 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02114/1.033, allocations: 3.221 MB / 1.335 GB, free: 15.95 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.844/9.877, allocations: 13.92 kB / 1.335 GB, free: 15.94 MB / 1.061 GB " [Timeout remaining time 290] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset_res.mat --tempDir=temp_Buildings_12_Buildings_Controls_OBC_CDL_Reals_Validation_IntegratorWithReset_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Controls_OBC_CDL_Reals_Validation_IntegratorWithReset.fmu > Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Reals_Validation_IntegratorWithReset.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.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: 16.42096878500888]