Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.BaseClasses.Validation.Logit1DQuadratic.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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.Occupants.BaseClasses.Validation.Logit1DQuadratic,fileNamePrefix="Buildings_latest_Buildings_Occupants_BaseClasses_Validation_Logit1DQuadratic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.BaseClasses.Validation.Logit1DQuadratic,fileNamePrefix="Buildings_latest_Buildings_Occupants_BaseClasses_Validation_Logit1DQuadratic",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.008238/0.008239, allocations: 100.4 kB / 15.73 MB, free: 6.023 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.00182/0.00182, allocations: 192.9 kB / 16.67 MB, free: 5.957 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.43/1.43, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.841/2.841, allocations: 461.9 MB / 0.7348 GB, free: 14.59 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001625/0.001625, allocations: 63.91 kB / 1.054 GB, free: 7.648 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3286/0.3303, allocations: 157.4 MB / 1.207 GB, free: 10.13 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.BaseClasses.Validation.Logit1DQuadratic): time 0.002245/0.3326, allocations: 1.213 MB / 1.208 GB, free: 8.906 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001166/0.3337, allocations: 462.4 kB / 1.209 GB, free: 8.453 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.228e-05/0.3338, allocations: 0 / 1.209 GB, free: 8.453 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 3.082e-05/0.3339, allocations: 4 kB / 1.209 GB, free: 8.449 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 5.375e-05/0.334, allocations: 3.938 kB / 1.209 GB, free: 8.445 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007037/0.3347, allocations: 103.6 kB / 1.209 GB, free: 8.344 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 8.556e-05/0.3348, allocations: 31.86 kB / 1.209 GB, free: 8.312 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 4.947e-05/0.3348, allocations: 0 / 1.209 GB, free: 8.312 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 2.57e-05/0.3349, allocations: 7.984 kB / 1.209 GB, free: 8.305 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 4.058e-05/0.3349, allocations: 19.91 kB / 1.209 GB, free: 8.285 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.4e-05/0.3349, allocations: 0 / 1.209 GB, free: 8.285 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002454/0.3352, allocations: 99.84 kB / 1.209 GB, free: 8.188 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.223e-05/0.3352, allocations: 11.98 kB / 1.209 GB, free: 8.176 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 3.407e-05/0.3353, allocations: 11.94 kB / 1.209 GB, free: 8.164 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0002367/0.3355, allocations: 95.8 kB / 1.209 GB, free: 8.07 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.3355, allocations: 0 / 1.209 GB, free: 8.07 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.452e-06/0.3355, allocations: 0 / 1.209 GB, free: 8.07 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 6.231e-06/0.3355, allocations: 0 / 1.209 GB, free: 8.07 MB / 0.9669 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.0005877/0.3361, allocations: 389.3 kB / 1.21 GB, free: 7.633 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 5.131e-05/0.3362, allocations: 12.62 kB / 1.21 GB, free: 7.621 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.785e-05/0.3363, allocations: 30.75 kB / 1.21 GB, free: 7.582 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.333e-05/0.3363, allocations: 8.844 kB / 1.21 GB, free: 7.574 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001331/0.3364, allocations: 164.4 kB / 1.21 GB, free: 7.375 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.507e-05/0.3365, allocations: 4.312 kB / 1.21 GB, free: 7.371 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.717e-05/0.3365, allocations: 12.36 kB / 1.21 GB, free: 7.359 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001287/0.3366, allocations: 42.23 kB / 1.21 GB, free: 7.312 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.558e-06/0.3366, allocations: 3.938 kB / 1.21 GB, free: 7.309 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.556e-06/0.3367, allocations: 0 / 1.21 GB, free: 7.309 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.308e-06/0.3367, allocations: 0 / 1.21 GB, free: 7.309 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.818e-05/0.3367, allocations: 8 kB / 1.21 GB, free: 7.301 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003375/0.3371, allocations: 249 kB / 1.21 GB, free: 7.008 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 9.942e-05/0.3372, allocations: 38.45 kB / 1.21 GB, free: 6.961 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.771e-05/0.3372, allocations: 20.94 kB / 1.21 GB, free: 6.938 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 7.193e-06/0.3372, allocations: 0 / 1.21 GB, free: 6.938 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000165/0.3374, allocations: 63.39 kB / 1.21 GB, free: 6.863 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=5): time 1.303e-06/0.3374, allocations: 4 kB / 1.21 GB, free: 6.859 MB / 0.9669 GB Notification: Performance of matching and sorting (n=5): time 0.0002175/0.3376, allocations: 77.53 kB / 1.21 GB, free: 6.777 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.194e-05/0.3377, allocations: 51.41 kB / 1.21 GB, free: 6.715 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.048e-05/0.3378, allocations: 105.8 kB / 1.21 GB, free: 6.602 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.389e-05/0.3378, allocations: 25.7 kB / 1.211 GB, free: 6.57 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 3.714e-05/0.3378, allocations: 88.14 kB / 1.211 GB, free: 6.48 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.983e-05/0.3379, allocations: 19.72 kB / 1.211 GB, free: 6.461 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.991e-05/0.3379, allocations: 21.72 kB / 1.211 GB, free: 6.434 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001057/0.338, allocations: 322.8 kB / 1.211 GB, free: 6.109 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.592e-05/0.3381, allocations: 11.98 kB / 1.211 GB, free: 6.098 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.6e-05/0.3381, allocations: 35.42 kB / 1.211 GB, free: 6.051 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.83e-05/0.3382, allocations: 47.38 kB / 1.211 GB, free: 5.992 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.356e-06/0.3382, allocations: 7.938 kB / 1.211 GB, free: 5.984 MB / 0.9669 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001023/0.3383, allocations: 69.61 kB / 1.211 GB, free: 5.91 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.486e-05/0.3383, allocations: 9.562 kB / 1.211 GB, free: 5.902 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.089e-06/0.3383, allocations: 0 / 1.211 GB, free: 5.902 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.438e-05/0.3383, allocations: 0 / 1.211 GB, free: 5.902 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.159e-05/0.3384, allocations: 15.88 kB / 1.211 GB, free: 5.887 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.016e-05/0.3384, allocations: 8.141 kB / 1.211 GB, free: 5.879 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.533e-05/0.3385, allocations: 0 / 1.211 GB, free: 5.879 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.787e-06/0.3385, allocations: 4 kB / 1.211 GB, free: 5.875 MB / 0.9669 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 (curSeed,$PRE.curSeed,$whenCondition1,$outputAlias_y,$PRE.$outputAlias_y) * Number of discrete states: 0 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.293e-05/0.3386, allocations: 121.8 kB / 1.211 GB, free: 5.746 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.561e-05/0.3386, allocations: 11.97 kB / 1.211 GB, free: 5.734 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.624e-05/0.3386, allocations: 7.969 kB / 1.211 GB, free: 5.723 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.653e-06/0.3386, allocations: 0 / 1.211 GB, free: 5.723 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.526e-06/0.3386, allocations: 4 kB / 1.211 GB, free: 5.719 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.406e-06/0.3386, allocations: 0 / 1.211 GB, free: 5.719 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002561/0.3389, allocations: 302.5 kB / 1.212 GB, free: 5.367 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.552e-06/0.3389, allocations: 0 / 1.212 GB, free: 5.367 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.049e-05/0.3389, allocations: 4 kB / 1.212 GB, free: 5.363 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.479e-06/0.3389, allocations: 4.562 kB / 1.212 GB, free: 5.359 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.905e-06/0.339, allocations: 0 / 1.212 GB, free: 5.359 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.339, allocations: 0 / 1.212 GB, free: 5.359 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.339, allocations: 0 / 1.212 GB, free: 5.359 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001592/0.3391, allocations: 171.4 kB / 1.212 GB, free: 5.176 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 3.839e-05/0.3392, allocations: 88.95 kB / 1.212 GB, free: 5.07 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.431e-05/0.3392, allocations: 0 / 1.212 GB, free: 5.07 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.009e-05/0.3392, allocations: 0 / 1.212 GB, free: 5.07 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.39e-05/0.3393, allocations: 7.984 kB / 1.212 GB, free: 5.062 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.321e-06/0.3393, allocations: 4 kB / 1.212 GB, free: 5.059 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 4.788e-05/0.3393, allocations: 83.28 kB / 1.212 GB, free: 4.977 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.11e-07/0.3393, allocations: 0 / 1.212 GB, free: 4.977 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0003029/0.3397, allocations: 43.92 kB / 1.212 GB, free: 4.934 MB / 0.9669 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 () * Number of clocked 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 (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.0008615/0.3405, allocations: 0.7619 MB / 1.213 GB, free: 4.16 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0001394/0.3407, allocations: 39.86 kB / 1.213 GB, free: 4.121 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.3407, allocations: 0 / 1.213 GB, free: 4.121 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 4.591e-05/0.3407, allocations: 19.92 kB / 1.213 GB, free: 4.102 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002176/0.341, allocations: 5.719 kB / 1.213 GB, free: 4.098 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001132/0.3421, allocations: 1.305 MB / 1.214 GB, free: 2.695 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002471/0.3424, allocations: 0.6821 MB / 1.215 GB, free: 1.988 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 1.994e-05/0.3424, allocations: 0 / 1.215 GB, free: 1.988 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.367e-05/0.3424, allocations: 11.44 kB / 1.215 GB, free: 1.977 MB / 0.9669 GB Notification: Performance of SimCode: time 2e-07/0.3424, allocations: 0 / 1.215 GB, free: 1.977 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01763/0.3601, allocations: 2.107 MB / 1.217 GB, free: 15.98 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.893/8.253, allocations: 12.88 kB / 1.217 GB, free: 15.97 MB / 0.9825 GB (rm -f Buildings_latest_Buildings.Occupants.BaseClasses.Validation.Logit1DQuadratic.pipe ; mkfifo Buildings_latest_Buildings.Occupants.BaseClasses.Validation.Logit1DQuadratic.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.BaseClasses.Validation.Logit1DQuadratic.pipe >> ../files/Buildings_latest_Buildings.Occupants.BaseClasses.Validation.Logit1DQuadratic.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Occupants.BaseClasses.Validation.Logit1DQuadratic_res.mat --tempDir=temp_Buildings_latest_Buildings_Occupants_BaseClasses_Validation_Logit1DQuadratic_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Occupants_BaseClasses_Validation_Logit1DQuadratic.fmu > Buildings_latest_Buildings.Occupants.BaseClasses.Validation.Logit1DQuadratic.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.BaseClasses.Validation.Logit1DQuadratic_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_BaseClasses_Validation_Logit1DQuadratic.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Occupants.BaseClasses.Validation.Logit1DQuadratic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,y Variables in the result:A,B,C,D,seed,time,x,y