Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Examples.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.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Examples_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Examples_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.001015/0.001015, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.008277/0.008277, allocations: 168.9 kB / 16.26 MB, free: 6.648 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.367/1.367, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.664/2.664, allocations: 462.7 MB / 0.7364 GB, free: 15.59 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003338/0.0003338, allocations: 12.81 kB / 0.9029 GB, free: 36.5 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.271/0.2713, allocations: 159.6 MB / 1.059 GB, free: 4.906 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.001622/0.273, allocations: 1.525 MB / 1.06 GB, free: 3.367 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0007301/0.2737, allocations: 0.5376 MB / 1.061 GB, free: 2.824 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.131e-05/0.2738, allocations: 7.938 kB / 1.061 GB, free: 2.816 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 7.176e-05/0.2739, allocations: 15.8 kB / 1.061 GB, free: 2.801 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 5.772e-05/0.2739, allocations: 19.84 kB / 1.061 GB, free: 2.781 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001494/0.2741, allocations: 63.88 kB / 1.061 GB, free: 2.719 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.00016/0.2743, allocations: 159.5 kB / 1.061 GB, free: 2.562 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 9.431e-05/0.2744, allocations: 45.66 kB / 1.061 GB, free: 2.52 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 5.249e-05/0.2744, allocations: 43.73 kB / 1.061 GB, free: 2.477 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 5.843e-05/0.2745, allocations: 55.62 kB / 1.061 GB, free: 2.422 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.622e-05/0.2745, allocations: 4 kB / 1.061 GB, free: 2.418 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 1.214e-05/0.2745, allocations: 4 kB / 1.061 GB, free: 2.414 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.189e-05/0.2746, allocations: 23.86 kB / 1.061 GB, free: 2.391 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 5.454e-05/0.2746, allocations: 81.31 kB / 1.061 GB, free: 2.305 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001023/0.2747, allocations: 111.7 kB / 1.061 GB, free: 2.195 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 2.004e-06/0.2747, allocations: 0 / 1.061 GB, free: 2.195 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.002e-06/0.2747, allocations: 0 / 1.061 GB, free: 2.195 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.779e-06/0.2748, allocations: 0 / 1.061 GB, free: 2.195 MB / 0.8106 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.0004943/0.2753, allocations: 462.8 kB / 1.062 GB, free: 1.695 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 2.61e-05/0.2753, allocations: 15.97 kB / 1.062 GB, free: 1.68 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.939e-05/0.2753, allocations: 46.73 kB / 1.062 GB, free: 1.625 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.127e-05/0.2754, allocations: 20.66 kB / 1.062 GB, free: 1.605 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001721/0.2755, allocations: 224 kB / 1.062 GB, free: 1.348 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.062e-05/0.2756, allocations: 12.31 kB / 1.062 GB, free: 1.336 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.353e-05/0.2756, allocations: 16.28 kB / 1.062 GB, free: 1.32 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002443/0.2758, allocations: 163.5 kB / 1.062 GB, free: 1.141 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.851e-06/0.2759, allocations: 0 / 1.062 GB, free: 1.141 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.117e-06/0.2759, allocations: 0 / 1.062 GB, free: 1.141 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.609e-06/0.2759, allocations: 4 kB / 1.062 GB, free: 1.137 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002205/0.2761, allocations: 91.81 kB / 1.062 GB, free: 1.047 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000675/0.2768, allocations: 0.7276 MB / 1.063 GB, free: 260 kB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001297/0.2769, allocations: 54.55 kB / 1.063 GB, free: 196 kB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001017/0.277, allocations: 40.83 kB / 1.063 GB, free: 152 kB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.251e-05/0.2771, allocations: 4 kB / 1.063 GB, free: 148 kB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002295/0.2773, allocations: 138.6 kB / 1.063 GB, free: 15.98 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=11): time 1.142e-06/0.2773, allocations: 0 / 1.063 GB, free: 15.98 MB / 0.8262 GB Notification: Performance of matching and sorting (n=11): time 0.0004179/0.2777, allocations: 185.5 kB / 1.064 GB, free: 15.8 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.139e-05/0.2778, allocations: 140.4 kB / 1.064 GB, free: 15.63 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001412/0.2779, allocations: 195 kB / 1.064 GB, free: 15.43 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.42e-05/0.278, allocations: 29.7 kB / 1.064 GB, free: 15.39 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 6.129e-05/0.278, allocations: 127.8 kB / 1.064 GB, free: 15.27 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.034e-05/0.2781, allocations: 39.69 kB / 1.064 GB, free: 15.23 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.731e-05/0.2781, allocations: 29.64 kB / 1.064 GB, free: 15.19 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 8.276e-05/0.2782, allocations: 334.8 kB / 1.064 GB, free: 14.86 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001222/0.2783, allocations: 39.97 kB / 1.064 GB, free: 14.82 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001666/0.2785, allocations: 159 kB / 1.065 GB, free: 14.61 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002894/0.2788, allocations: 214.3 kB / 1.065 GB, free: 14.35 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.2788, allocations: 0 / 1.065 GB, free: 14.35 MB / 0.8262 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003751/0.2792, allocations: 213.4 kB / 1.065 GB, free: 14.13 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.107e-05/0.2792, allocations: 8 kB / 1.065 GB, free: 14.12 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.809e-06/0.2792, allocations: 4 kB / 1.065 GB, free: 14.12 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.182e-05/0.2792, allocations: 4 kB / 1.065 GB, free: 14.12 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001189/0.2794, allocations: 43.91 kB / 1.065 GB, free: 14.07 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.062e-06/0.2794, allocations: 4.188 kB / 1.065 GB, free: 14.07 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00014/0.2795, allocations: 31.83 kB / 1.065 GB, free: 14.04 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.206e-05/0.2795, allocations: 12 kB / 1.065 GB, free: 14.03 MB / 0.8262 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.533e-05/0.2796, allocations: 137.7 kB / 1.065 GB, free: 13.88 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.635e-05/0.2797, allocations: 23.7 kB / 1.065 GB, free: 13.86 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.367e-05/0.2797, allocations: 17.41 kB / 1.065 GB, free: 13.84 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.87e-06/0.2797, allocations: 4 kB / 1.065 GB, free: 13.84 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.695e-06/0.2797, allocations: 4 kB / 1.065 GB, free: 13.84 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.368e-06/0.2797, allocations: 3.984 kB / 1.065 GB, free: 13.83 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006592/0.2804, allocations: 0.5249 MB / 1.066 GB, free: 13.25 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.056e-06/0.2804, allocations: 3.984 kB / 1.066 GB, free: 13.25 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001111/0.2805, allocations: 23.98 kB / 1.066 GB, free: 13.22 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.074e-06/0.2805, allocations: 0 / 1.066 GB, free: 13.22 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.049e-05/0.2805, allocations: 4 kB / 1.066 GB, free: 13.22 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.2805, allocations: 0 / 1.066 GB, free: 13.22 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.476e-06/0.2805, allocations: 8.25 kB / 1.066 GB, free: 13.21 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004446/0.281, allocations: 376.1 kB / 1.066 GB, free: 12.82 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.435e-05/0.2811, allocations: 92.92 kB / 1.066 GB, free: 12.71 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.242e-05/0.2811, allocations: 8 kB / 1.066 GB, free: 12.7 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001663/0.2813, allocations: 20.02 kB / 1.066 GB, free: 12.68 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.703e-05/0.2813, allocations: 19.92 kB / 1.066 GB, free: 12.66 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.736e-06/0.2813, allocations: 4 kB / 1.066 GB, free: 12.66 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 9.284e-05/0.2814, allocations: 140.6 kB / 1.066 GB, free: 12.52 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.21e-07/0.2814, allocations: 0 / 1.066 GB, free: 12.52 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003049/0.2817, allocations: 28 kB / 1.066 GB, free: 12.5 MB / 0.8262 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.0006682/0.2824, allocations: 0.9111 MB / 1.067 GB, free: 11.55 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.000274/0.2827, allocations: 128.6 kB / 1.067 GB, free: 11.43 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.2827, allocations: 4 kB / 1.067 GB, free: 11.43 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.000133/0.2828, allocations: 56.22 kB / 1.068 GB, free: 11.37 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004963/0.2833, allocations: 63.06 kB / 1.068 GB, free: 11.31 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002089/0.2854, allocations: 2.336 MB / 1.07 GB, free: 8.777 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002085/0.2857, allocations: 0.7245 MB / 1.071 GB, free: 8.027 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 6.611e-05/0.2857, allocations: 17.55 kB / 1.071 GB, free: 8.008 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.38e-05/0.2858, allocations: 51.36 kB / 1.071 GB, free: 7.957 MB / 0.8262 GB Notification: Performance of SimCode: time 3.41e-07/0.2858, allocations: 4 kB / 1.071 GB, free: 7.953 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.263/1.549, allocations: 3.594 MB / 1.074 GB, free: 4.512 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002962/1.55, allocations: 205.5 kB / 1.074 GB, free: 4.258 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.15/3.7, allocations: 0 / 1.074 GB, free: 4.258 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Math_Examples_IntegratorWithReset_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Math_Examples_IntegratorWithReset.fmu > Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_IntegratorWithReset.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches