Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Reals_Validation_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Reals_Validation_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001231/0.001231, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001195/0.001195, allocations: 194.7 kB / 16.53 MB, free: 6.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.284/1.284, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.653/2.653, allocations: 469.8 MB / 0.7424 GB, free: 7.445 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00179/0.00179, allocations: 64.48 kB / 0.9087 GB, free: 34.31 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2636/0.2654, allocations: 159.2 MB / 1.064 GB, free: 14.18 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset): time 0.002082/0.2675, allocations: 0.8806 MB / 1.065 GB, free: 13.3 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001436/0.2689, allocations: 1.18 MB / 1.066 GB, free: 12.11 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.919e-05/0.269, allocations: 0 / 1.066 GB, free: 12.11 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 2.947e-05/0.269, allocations: 7.875 kB / 1.066 GB, free: 12.1 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 7.176e-05/0.2691, allocations: 15.86 kB / 1.066 GB, free: 12.08 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.000446/0.2696, allocations: 146 kB / 1.066 GB, free: 11.94 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0002066/0.2698, allocations: 175.6 kB / 1.066 GB, free: 11.77 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001157/0.2699, allocations: 41.05 kB / 1.066 GB, free: 11.73 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 9.773e-05/0.27, allocations: 67.81 kB / 1.067 GB, free: 11.66 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 8.926e-05/0.2701, allocations: 59.75 kB / 1.067 GB, free: 11.61 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.596e-05/0.2701, allocations: 16 kB / 1.067 GB, free: 11.59 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 7.606e-05/0.2702, allocations: 27.98 kB / 1.067 GB, free: 11.56 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 3.454e-05/0.2703, allocations: 27.91 kB / 1.067 GB, free: 11.54 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 7.835e-05/0.2703, allocations: 63.72 kB / 1.067 GB, free: 11.47 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.000208/0.2705, allocations: 171.7 kB / 1.067 GB, free: 11.3 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 2.645e-06/0.2706, allocations: 0 / 1.067 GB, free: 11.3 MB / 0.8262 GB Notification: Performance of FrontEnd: time 9.82e-07/0.2706, allocations: 0 / 1.067 GB, free: 11.3 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 3.687e-06/0.2706, allocations: 4 kB / 1.067 GB, free: 11.3 MB / 0.8262 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.0006542/0.2712, allocations: 452.8 kB / 1.067 GB, free: 10.8 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 2.91e-05/0.2713, allocations: 8.031 kB / 1.067 GB, free: 10.79 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.639e-05/0.2713, allocations: 38.75 kB / 1.067 GB, free: 10.75 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.665e-05/0.2714, allocations: 16.75 kB / 1.067 GB, free: 10.73 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005322/0.2719, allocations: 256.2 kB / 1.068 GB, free: 10.44 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.376e-05/0.2719, allocations: 12.31 kB / 1.068 GB, free: 10.43 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.207e-05/0.272, allocations: 12.31 kB / 1.068 GB, free: 10.42 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002198/0.2722, allocations: 95.92 kB / 1.068 GB, free: 10.32 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.763e-06/0.2722, allocations: 0 / 1.068 GB, free: 10.32 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.193e-05/0.2722, allocations: 4 kB / 1.068 GB, free: 10.32 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.229e-06/0.2722, allocations: 4 kB / 1.068 GB, free: 10.31 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001779/0.2724, allocations: 47.89 kB / 1.068 GB, free: 10.27 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000672/0.2731, allocations: 392.4 kB / 1.068 GB, free: 9.832 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000118/0.2732, allocations: 46.47 kB / 1.068 GB, free: 9.777 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.127e-05/0.2733, allocations: 28.97 kB / 1.068 GB, free: 9.746 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.229e-05/0.2733, allocations: 0 / 1.068 GB, free: 9.746 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002267/0.2736, allocations: 95.34 kB / 1.068 GB, free: 9.641 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=10): time 1.223e-06/0.2736, allocations: 0 / 1.068 GB, free: 9.641 MB / 0.8262 GB Notification: Performance of matching and sorting (n=10): time 0.0004009/0.274, allocations: 137.5 kB / 1.068 GB, free: 9.5 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.248e-05/0.274, allocations: 55.34 kB / 1.069 GB, free: 9.434 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001165/0.2742, allocations: 147.6 kB / 1.069 GB, free: 9.281 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.721e-05/0.2742, allocations: 25.7 kB / 1.069 GB, free: 9.25 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 8.203e-05/0.2743, allocations: 112.1 kB / 1.069 GB, free: 9.137 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.879e-05/0.2743, allocations: 35.53 kB / 1.069 GB, free: 9.102 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.913e-05/0.2744, allocations: 49.69 kB / 1.069 GB, free: 9.047 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001372/0.2745, allocations: 322.8 kB / 1.069 GB, free: 8.723 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000153/0.2747, allocations: 51.97 kB / 1.069 GB, free: 8.672 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002173/0.2749, allocations: 127.8 kB / 1.069 GB, free: 8.508 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003314/0.2753, allocations: 200.6 kB / 1.07 GB, free: 8.266 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.2753, allocations: 0 / 1.07 GB, free: 8.266 MB / 0.8262 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004857/0.2758, allocations: 243 kB / 1.07 GB, free: 8.016 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 3.72e-05/0.2758, allocations: 37.7 kB / 1.07 GB, free: 7.973 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.352e-06/0.2758, allocations: 4 kB / 1.07 GB, free: 7.969 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.488e-05/0.2758, allocations: 4 kB / 1.07 GB, free: 7.965 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001112/0.276, allocations: 32.59 kB / 1.07 GB, free: 7.934 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.404e-06/0.276, allocations: 8 kB / 1.07 GB, free: 7.926 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002232/0.2762, allocations: 39.81 kB / 1.07 GB, free: 7.887 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.474e-05/0.2762, allocations: 15.98 kB / 1.07 GB, free: 7.871 MB / 0.8262 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 0.0001122/0.2764, allocations: 129.7 kB / 1.07 GB, free: 7.734 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.869e-05/0.2764, allocations: 11.91 kB / 1.07 GB, free: 7.723 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.371e-05/0.2764, allocations: 8.719 kB / 1.07 GB, free: 7.715 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.29e-06/0.2764, allocations: 15.86 kB / 1.07 GB, free: 7.699 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.106e-06/0.2764, allocations: 4 kB / 1.07 GB, free: 7.695 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.715e-06/0.2764, allocations: 0 / 1.07 GB, free: 7.695 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005651/0.277, allocations: 394.3 kB / 1.07 GB, free: 7.254 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.277, allocations: 0 / 1.07 GB, free: 7.254 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.427e-05/0.2771, allocations: 19.86 kB / 1.07 GB, free: 7.234 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.643e-06/0.2771, allocations: 0 / 1.07 GB, free: 7.234 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.127e-06/0.2772, allocations: 8 kB / 1.07 GB, free: 7.227 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.096e-06/0.2772, allocations: 3.984 kB / 1.07 GB, free: 7.223 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.2772, allocations: 0 / 1.07 GB, free: 7.223 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004078/0.2776, allocations: 235.3 kB / 1.071 GB, free: 6.977 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.674e-05/0.2776, allocations: 88.95 kB / 1.071 GB, free: 6.871 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.099e-05/0.2777, allocations: 12.03 kB / 1.071 GB, free: 6.859 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.065e-05/0.2778, allocations: 8 kB / 1.071 GB, free: 6.852 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.585e-05/0.2778, allocations: 7.984 kB / 1.071 GB, free: 6.844 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.396e-06/0.2778, allocations: 4 kB / 1.071 GB, free: 6.84 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 7.064e-05/0.2779, allocations: 109 kB / 1.071 GB, free: 6.734 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.21e-07/0.2779, allocations: 0 / 1.071 GB, free: 6.734 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002732/0.2782, allocations: 31.91 kB / 1.071 GB, free: 6.703 MB / 0.8262 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.0007825/0.279, allocations: 0.799 MB / 1.072 GB, free: 5.879 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003958/0.2794, allocations: 187.8 kB / 1.072 GB, free: 5.684 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.2794, allocations: 0 / 1.072 GB, free: 5.684 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.000116/0.2795, allocations: 35.92 kB / 1.072 GB, free: 5.648 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002645/0.2798, allocations: 21.55 kB / 1.072 GB, free: 5.629 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002368/0.2822, allocations: 1.956 MB / 1.074 GB, free: 3.508 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003157/0.2825, allocations: 0.7045 MB / 1.075 GB, free: 2.777 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 6.922e-05/0.2826, allocations: 16.64 kB / 1.075 GB, free: 2.758 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.693e-05/0.2826, allocations: 39.42 kB / 1.075 GB, free: 2.719 MB / 0.8262 GB Notification: Performance of SimCode: time 2.9e-07/0.2826, allocations: 3.938 kB / 1.075 GB, free: 2.715 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02463/0.3073, allocations: 3.113 MB / 1.078 GB, free: 15.71 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.183/8.49, allocations: 22.86 kB / 1.078 GB, free: 15.69 MB / 0.8419 GB (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset_res.mat --tempDir=temp_Buildings_11_Buildings_Controls_OBC_CDL_Reals_Validation_IntegratorWithReset_fmu --startTime=0 --stopTime=1 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Controls_OBC_CDL_Reals_Validation_IntegratorWithReset.fmu > Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Reals_Validation_IntegratorWithReset.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches