Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.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 10.0.0-master/package.mo", uses=false) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.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.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Continuous_Validation_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Continuous_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.0009838/0.0009838, allocations: 86.41 kB / 15.06 MB, free: 1.09 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.001196/0.001196, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.485/1.485, allocations: 223.3 MB / 240 MB, free: 5.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.718/2.718, allocations: 409.4 MB / 0.684 GB, free: 0.8945 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0003865/0.0003866, allocations: 12 kB / 0.8378 GB, free: 6.461 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.809/0.8094, allocations: 146.8 MB / 0.9812 GB, free: 6.223 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset): time 0.001/0.8104, allocations: 0.5823 MB / 0.9817 GB, free: 5.648 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001464/0.8119, allocations: 1.152 MB / 0.9829 GB, free: 4.477 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.564e-05/0.812, allocations: 0 / 0.9829 GB, free: 4.477 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 1.815e-05/0.812, allocations: 3.938 kB / 0.9829 GB, free: 4.473 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 9.027e-05/0.8121, allocations: 19.86 kB / 0.9829 GB, free: 4.453 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005326/0.8126, allocations: 130.4 kB / 0.983 GB, free: 4.328 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0001722/0.8128, allocations: 135.7 kB / 0.9831 GB, free: 4.195 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001407/0.813, allocations: 37.02 kB / 0.9832 GB, free: 4.16 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 9.551e-05/0.8131, allocations: 55.77 kB / 0.9832 GB, free: 4.105 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 9.078e-05/0.8132, allocations: 55.81 kB / 0.9833 GB, free: 4.051 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 2.305e-05/0.8132, allocations: 8 kB / 0.9833 GB, free: 4.043 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 7.065e-05/0.8133, allocations: 19.98 kB / 0.9833 GB, free: 4.023 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 2.756e-05/0.8133, allocations: 19.91 kB / 0.9833 GB, free: 4.004 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 6.039e-05/0.8134, allocations: 45.64 kB / 0.9834 GB, free: 3.953 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001564/0.8135, allocations: 110 kB / 0.9835 GB, free: 3.848 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 6.181e-06/0.8135, allocations: 0 / 0.9835 GB, free: 3.848 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.823e-06/0.8135, allocations: 0 / 0.9835 GB, free: 3.848 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 5.099e-06/0.8136, allocations: 4 kB / 0.9835 GB, free: 3.844 MB / 0.7325 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.0006565/0.8142, allocations: 436.6 kB / 0.9839 GB, free: 3.363 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.723e-05/0.8143, allocations: 8.031 kB / 0.9839 GB, free: 3.355 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.536e-05/0.8143, allocations: 42.55 kB / 0.9839 GB, free: 3.305 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.002e-05/0.8144, allocations: 15.81 kB / 0.984 GB, free: 3.289 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005703/0.815, allocations: 256.2 kB / 0.9842 GB, free: 3 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.38e-05/0.815, allocations: 7.984 kB / 0.9842 GB, free: 2.992 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.655e-05/0.8151, allocations: 15.95 kB / 0.9842 GB, free: 2.977 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002252/0.8153, allocations: 93.64 kB / 0.9843 GB, free: 2.879 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.935e-06/0.8153, allocations: 0 / 0.9843 GB, free: 2.879 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.305e-05/0.8153, allocations: 8 kB / 0.9843 GB, free: 2.871 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.003e-06/0.8153, allocations: 4 kB / 0.9843 GB, free: 2.867 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001752/0.8155, allocations: 55.83 kB / 0.9844 GB, free: 2.812 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007129/0.8162, allocations: 388.5 kB / 0.9847 GB, free: 2.383 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001256/0.8164, allocations: 46.44 kB / 0.9848 GB, free: 2.328 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001014/0.8165, allocations: 28.97 kB / 0.9848 GB, free: 2.297 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.968e-05/0.8165, allocations: 8 kB / 0.9848 GB, free: 2.289 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002443/0.8168, allocations: 95.34 kB / 0.9849 GB, free: 2.184 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=10): time 1.613e-06/0.8168, allocations: 0 / 0.9849 GB, free: 2.184 MB / 0.7325 GB Notification: Performance of matching and sorting (n=10): time 0.0003792/0.8172, allocations: 149.7 kB / 0.9851 GB, free: 2.031 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.184e-05/0.8172, allocations: 59.3 kB / 0.9851 GB, free: 1.961 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001131/0.8173, allocations: 152.3 kB / 0.9853 GB, free: 1.805 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.377e-05/0.8174, allocations: 25.8 kB / 0.9853 GB, free: 1.773 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 7.391e-05/0.8174, allocations: 115.9 kB / 0.9854 GB, free: 1.656 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.533e-05/0.8175, allocations: 31.64 kB / 0.9854 GB, free: 1.625 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.204e-05/0.8175, allocations: 0 / 0.9854 GB, free: 1.625 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001226/0.8176, allocations: 326.8 kB / 0.9857 GB, free: 1.297 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001438/0.8178, allocations: 51.95 kB / 0.9858 GB, free: 1.246 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001924/0.818, allocations: 132.7 kB / 0.9859 GB, free: 1.078 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001668/0.8182, allocations: 97.61 kB / 0.986 GB, free: 0.9766 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.8182, allocations: 0 / 0.986 GB, free: 0.9766 MB / 0.7325 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004565/0.8186, allocations: 250.9 kB / 0.9862 GB, free: 0.7188 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 4.388e-05/0.8187, allocations: 37.7 kB / 0.9863 GB, free: 0.6758 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.115e-06/0.8187, allocations: 4.375 kB / 0.9863 GB, free: 0.6719 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.134e-05/0.8187, allocations: 15.94 kB / 0.9863 GB, free: 0.6562 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001086/0.8188, allocations: 27.92 kB / 0.9863 GB, free: 0.6289 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.878e-06/0.8189, allocations: 4 kB / 0.9863 GB, free: 0.625 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002152/0.8191, allocations: 39.97 kB / 0.9864 GB, free: 0.5859 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.26e-05/0.8191, allocations: 23.98 kB / 0.9864 GB, free: 0.5625 MB / 0.7325 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 ($whenCondition4,$PRE.booleanPulse.y,booleanPulse.y,$whenCondition1,$whenCondition2,$whenCondition3,sampleTrigger.y) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000122/0.8192, allocations: 131.3 kB / 0.9865 GB, free: 436 kB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.782e-05/0.8193, allocations: 11.81 kB / 0.9865 GB, free: 424 kB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.27e-05/0.8193, allocations: 16.75 kB / 0.9865 GB, free: 400 kB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.98e-06/0.8193, allocations: 3.984 kB / 0.9865 GB, free: 396 kB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.472e-06/0.8194, allocations: 3.953 kB / 0.9866 GB, free: 392 kB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.546e-06/0.8194, allocations: 0 / 0.9866 GB, free: 392 kB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005761/0.8199, allocations: 402.5 kB / 0.9869 GB, free: 15.93 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.82, allocations: 0 / 0.9869 GB, free: 15.93 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.788e-05/0.82, allocations: 15.94 kB / 0.987 GB, free: 15.92 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.721e-06/0.8201, allocations: 3.984 kB / 0.987 GB, free: 15.91 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.765e-05/0.8201, allocations: 11.95 kB / 0.987 GB, free: 15.9 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.014e-06/0.8201, allocations: 3.938 kB / 0.987 GB, free: 15.9 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.412e-06/0.8201, allocations: 0 / 0.987 GB, free: 15.9 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004493/0.8206, allocations: 255.3 kB / 0.9872 GB, free: 15.63 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 5.679e-05/0.8206, allocations: 89 kB / 0.9873 GB, free: 15.53 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.136e-05/0.8207, allocations: 0 / 0.9873 GB, free: 15.53 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.423e-05/0.8208, allocations: 19.94 kB / 0.9873 GB, free: 15.51 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.42e-05/0.8208, allocations: 4 kB / 0.9873 GB, free: 15.5 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.053e-05/0.8208, allocations: 7.984 kB / 0.9873 GB, free: 15.5 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 8.078e-05/0.8209, allocations: 99.27 kB / 0.9874 GB, free: 15.4 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8209, allocations: 0 / 0.9874 GB, free: 15.4 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0002972/0.8212, allocations: 35.94 kB / 0.9875 GB, free: 15.36 MB / 0.7481 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007452/0.822, allocations: 0.8021 MB / 0.9882 GB, free: 14.54 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0003822/0.8224, allocations: 195.8 kB / 0.9884 GB, free: 14.33 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.225e-06/0.8224, allocations: 0 / 0.9884 GB, free: 14.33 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0001215/0.8225, allocations: 39.97 kB / 0.9885 GB, free: 14.29 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002906/0.8228, allocations: 29.94 kB / 0.9885 GB, free: 14.27 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001487/0.8243, allocations: 0.8951 MB / 0.9894 GB, free: 13.28 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002976/0.8246, allocations: 0.7084 MB / 0.9901 GB, free: 12.55 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 8.367e-05/0.8247, allocations: 16.64 kB / 0.9901 GB, free: 12.53 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.15e-05/0.8248, allocations: 39.98 kB / 0.9901 GB, free: 12.49 MB / 0.7481 GB Notification: Performance of SimCode: time 1.854e-06/0.8248, allocations: 0 / 0.9901 GB, free: 12.49 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01402/0.8388, allocations: 2.824 MB / 0.9929 GB, free: 9.871 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002291/0.8391, allocations: 204.7 kB / 0.9931 GB, free: 9.637 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.83/2.669, allocations: 4.125 kB / 0.9931 GB, free: 9.637 MB / 0.7481 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Continuous_Validation_IntegratorWithReset_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Continuous_Validation_IntegratorWithReset.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset_res.mat does not exist to compare? outputFormat=mat