Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.BaseClasses.Validation.Linear1D.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Occupants.BaseClasses.Validation.Linear1D,fileNamePrefix="Buildings_latest_Buildings_Occupants_BaseClasses_Validation_Linear1D",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.BaseClasses.Validation.Linear1D,fileNamePrefix="Buildings_latest_Buildings_Occupants_BaseClasses_Validation_Linear1D",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.171/2.171, allocations: 390.3 MB / 402.8 MB, free: 6.703 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001013/0.001013, allocations: 187.7 kB / 496.1 MB, free: 12.87 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.37/1.37, allocations: 221.3 MB / 0.7915 GB, free: 5.461 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008251/0.000825, allocations: 91.91 kB / 0.9317 GB, free: 5.781 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.659e-05/2.662e-05, allocations: 8 kB / 1.079 GB, free: 140.5 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2596/0.2596, allocations: 143 MB / 1.219 GB, free: 13.44 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8279/1.088, allocations: 150.2 MB / 1.366 GB, free: 3.809 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002246/1.088, allocations: 79.78 kB / 1.366 GB, free: 3.762 MB / 0.823 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/Occupants/BaseClasses/binaryVariableGeneration.mo:11:3-11:96:writable] Warning: localSeed was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. Notification: Performance of FrontEnd - DAE generated: time 0.006112/1.094, allocations: 2.162 MB / 1.368 GB, free: 1.898 MB / 0.823 GB Notification: Performance of FrontEnd: time 1.643e-06/1.094, allocations: 4 kB / 1.368 GB, free: 1.895 MB / 0.823 GB Notification: Performance of Transformations before backend: time 8.396e-06/1.094, allocations: 0 / 1.368 GB, free: 1.895 MB / 0.823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0003956/1.094, allocations: 367.4 kB / 1.368 GB, free: 1.488 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 4.638e-05/1.094, allocations: 8.031 kB / 1.368 GB, free: 1.48 MB / 0.823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.038e-05/1.095, allocations: 38.89 kB / 1.368 GB, free: 1.438 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.356e-05/1.095, allocations: 11.86 kB / 1.368 GB, free: 1.426 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001184/1.095, allocations: 167 kB / 1.368 GB, free: 1.223 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.358e-05/1.095, allocations: 4 kB / 1.368 GB, free: 1.219 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.364e-05/1.095, allocations: 0 / 1.368 GB, free: 1.219 MB / 0.823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001017/1.095, allocations: 48.81 kB / 1.368 GB, free: 1.168 MB / 0.823 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.673e-06/1.095, allocations: 0 / 1.368 GB, free: 1.168 MB / 0.823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.061e-05/1.095, allocations: 3.875 kB / 1.368 GB, free: 1.168 MB / 0.823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.076e-06/1.095, allocations: 0 / 1.368 GB, free: 1.168 MB / 0.823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.798e-05/1.095, allocations: 7.984 kB / 1.368 GB, free: 1.16 MB / 0.823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003416/1.095, allocations: 247.5 kB / 1.369 GB, free: 0.875 MB / 0.823 GB Notification: Performance of preOpt comSubExp (simulation): time 9.179e-05/1.095, allocations: 37.89 kB / 1.369 GB, free: 0.832 MB / 0.823 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.165e-05/1.095, allocations: 16.8 kB / 1.369 GB, free: 0.8164 MB / 0.823 GB Notification: Performance of preOpt evalFunc (simulation): time 1.178e-05/1.095, allocations: 0 / 1.369 GB, free: 0.8164 MB / 0.823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001176/1.096, allocations: 61.92 kB / 1.369 GB, free: 0.75 MB / 0.823 GB Notification: Performance of pre-optimization done (n=5): time 1.914e-06/1.096, allocations: 3.938 kB / 1.369 GB, free: 0.7461 MB / 0.823 GB Notification: Performance of matching and sorting (n=5): time 0.0001894/1.096, allocations: 63.64 kB / 1.369 GB, free: 0.6836 MB / 0.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.766e-05/1.096, allocations: 55.41 kB / 1.369 GB, free: 0.6172 MB / 0.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.389e-05/1.096, allocations: 99.97 kB / 1.369 GB, free: 0.5156 MB / 0.823 GB Notification: Performance of collectPreVariables (initialization): time 1.693e-05/1.096, allocations: 29.69 kB / 1.369 GB, free: 492 kB / 0.823 GB Notification: Performance of collectInitialEqns (initialization): time 4.494e-05/1.096, allocations: 86.83 kB / 1.369 GB, free: 404 kB / 0.823 GB Notification: Performance of collectInitialBindings (initialization): time 1.844e-05/1.096, allocations: 10.95 kB / 1.369 GB, free: 396 kB / 0.823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.115e-06/1.096, allocations: 0 / 1.369 GB, free: 396 kB / 0.823 GB Notification: Performance of setup shared object (initialization): time 0.0001111/1.096, allocations: 317.9 kB / 1.369 GB, free: 72 kB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.002e-05/1.096, allocations: 4 kB / 1.369 GB, free: 68 kB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.622e-05/1.096, allocations: 39.62 kB / 1.369 GB, free: 20 kB / 0.823 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.837e-05/1.096, allocations: 11.31 kB / 1.369 GB, free: 12 kB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/1.096, allocations: 0 / 1.369 GB, free: 12 kB / 0.823 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001281/1.096, allocations: 80.72 kB / 1.369 GB, free: 15.93 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.709e-05/1.096, allocations: 5.406 kB / 1.369 GB, free: 15.93 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.372e-06/1.096, allocations: 3.984 kB / 1.369 GB, free: 15.92 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.58e-05/1.096, allocations: 8.062 kB / 1.37 GB, free: 15.91 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.723e-05/1.097, allocations: 4 kB / 1.37 GB, free: 15.91 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.219e-05/1.097, allocations: 7.953 kB / 1.37 GB, free: 15.9 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.077e-05/1.097, allocations: 11.17 kB / 1.37 GB, free: 15.89 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.507e-06/1.097, allocations: 4 kB / 1.37 GB, free: 15.89 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 5 ($PRE.curSeed,curSeed,$whenCondition1,$PRE.$outputAlias_y,$outputAlias_y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * 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 7.092e-05/1.097, allocations: 105 kB / 1.37 GB, free: 15.78 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.003e-05/1.097, allocations: 3.828 kB / 1.37 GB, free: 15.78 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.63e-05/1.097, allocations: 7.125 kB / 1.37 GB, free: 15.78 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.354e-06/1.097, allocations: 0 / 1.37 GB, free: 15.78 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.96e-06/1.097, allocations: 4 kB / 1.37 GB, free: 15.77 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.28e-06/1.097, allocations: 7.953 kB / 1.37 GB, free: 15.77 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002463/1.097, allocations: 292.2 kB / 1.37 GB, free: 15.43 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/1.097, allocations: 0 / 1.37 GB, free: 15.43 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.734e-05/1.097, allocations: 7.375 kB / 1.37 GB, free: 15.43 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.745e-06/1.097, allocations: 0 / 1.37 GB, free: 15.43 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.025e-05/1.097, allocations: 4 kB / 1.37 GB, free: 15.43 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.344e-06/1.097, allocations: 1.031 kB / 1.37 GB, free: 15.43 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.916e-06/1.097, allocations: 3.953 kB / 1.37 GB, free: 15.42 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001396/1.097, allocations: 170 kB / 1.37 GB, free: 15.25 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 3.756e-05/1.097, allocations: 77.11 kB / 1.37 GB, free: 15.16 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.191e-05/1.097, allocations: 192 / 1.37 GB, free: 15.16 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.926e-05/1.097, allocations: 8 kB / 1.37 GB, free: 15.15 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.849e-05/1.097, allocations: 11.88 kB / 1.37 GB, free: 15.14 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.296e-06/1.097, allocations: 4 kB / 1.37 GB, free: 15.13 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 3.33e-05/1.097, allocations: 75.28 kB / 1.37 GB, free: 15.06 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.4e-07/1.097, allocations: 0 / 1.37 GB, free: 15.06 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002874/1.098, allocations: 55.67 kB / 1.37 GB, free: 15.01 MB / 0.8386 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,$outputAlias_y,curSeed) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0007255/1.098, allocations: 0.7721 MB / 1.371 GB, free: 14.24 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001046/1.099, allocations: 43.11 kB / 1.371 GB, free: 14.2 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/1.099, allocations: 0 / 1.371 GB, free: 14.2 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 3.053e-05/1.099, allocations: 10.88 kB / 1.371 GB, free: 14.2 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001188/1.099, allocations: 1.234 kB / 1.371 GB, free: 14.2 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003952/1.099, allocations: 140.8 kB / 1.371 GB, free: 14.03 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002327/1.099, allocations: 0.6809 MB / 1.372 GB, free: 13.32 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 2.064e-05/1.099, allocations: 0 / 1.372 GB, free: 13.32 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.344e-05/1.099, allocations: 19.06 kB / 1.372 GB, free: 13.31 MB / 0.8386 GB Notification: Performance of SimCode: time 1.904e-06/1.099, allocations: 0 / 1.372 GB, free: 13.31 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01386/1.113, allocations: 1.959 MB / 1.374 GB, free: 11.48 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000217/1.114, allocations: 191.7 kB / 1.374 GB, free: 11.26 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.463/2.577, allocations: 0 / 1.374 GB, free: 11.26 MB / 0.8386 GB (rm -f Buildings_latest_Buildings.Occupants.BaseClasses.Validation.Linear1D.pipe ; mkfifo Buildings_latest_Buildings.Occupants.BaseClasses.Validation.Linear1D.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.BaseClasses.Validation.Linear1D.pipe >> ../files/Buildings_latest_Buildings.Occupants.BaseClasses.Validation.Linear1D.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Occupants.BaseClasses.Validation.Linear1D_res.mat --tempDir=temp_Buildings_latest_Buildings_Occupants_BaseClasses_Validation_Linear1D_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Occupants_BaseClasses_Validation_Linear1D.fmu > Buildings_latest_Buildings.Occupants.BaseClasses.Validation.Linear1D.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Occupants.BaseClasses.Validation.Linear1D_res.mat does not exist to compare? outputFormat=mat