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.001632/0.001632, 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.001919/0.001919, allocations: 196.6 kB / 16.53 MB, free: 6.699 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.316/1.316, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.631/2.631, allocations: 469.4 MB / 0.742 GB, free: 7.719 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001895/0.001895, allocations: 67.14 kB / 0.9083 GB, free: 34.42 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2662/0.2681, allocations: 159.1 MB / 1.064 GB, free: 14.54 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.BaseClasses.Validation.Logit1DQuadratic): time 0.002391/0.2705, allocations: 1.221 MB / 1.065 GB, free: 13.3 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0008452/0.2714, allocations: 452.2 kB / 1.065 GB, free: 12.86 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.434e-05/0.2715, allocations: 0 / 1.065 GB, free: 12.86 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 1.832e-05/0.2715, allocations: 7.938 kB / 1.065 GB, free: 12.85 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 3.13e-05/0.2715, allocations: 0 / 1.065 GB, free: 12.85 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005296/0.2721, allocations: 123.5 kB / 1.065 GB, free: 12.73 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 6.536e-05/0.2722, allocations: 23.86 kB / 1.065 GB, free: 12.71 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 3.861e-05/0.2722, allocations: 4 kB / 1.065 GB, free: 12.7 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 1.946e-05/0.2722, allocations: 8 kB / 1.065 GB, free: 12.7 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 3.173e-05/0.2723, allocations: 15.91 kB / 1.065 GB, free: 12.68 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.328e-05/0.2723, allocations: 4 kB / 1.065 GB, free: 12.68 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002165/0.2725, allocations: 103.8 kB / 1.066 GB, free: 12.57 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 1.558e-05/0.2725, allocations: 0 / 1.066 GB, free: 12.57 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 3.373e-05/0.2726, allocations: 15.92 kB / 1.066 GB, free: 12.56 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001935/0.2728, allocations: 95.81 kB / 1.066 GB, free: 12.46 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.2728, allocations: 0 / 1.066 GB, free: 12.46 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.806e-06/0.2728, allocations: 0 / 1.066 GB, free: 12.46 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.16e-06/0.2728, allocations: 3.938 kB / 1.066 GB, free: 12.46 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0004565/0.2733, allocations: 393.4 kB / 1.066 GB, free: 12.02 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.186e-05/0.2733, allocations: 8.031 kB / 1.066 GB, free: 12.01 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.285e-05/0.2734, allocations: 34.73 kB / 1.066 GB, free: 11.97 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.896e-05/0.2734, allocations: 4.938 kB / 1.066 GB, free: 11.96 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001047/0.2735, allocations: 164.3 kB / 1.066 GB, free: 11.77 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.164e-05/0.2735, allocations: 8.359 kB / 1.066 GB, free: 11.76 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.087e-05/0.2736, allocations: 384 / 1.066 GB, free: 11.76 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001038/0.2737, allocations: 50.17 kB / 1.066 GB, free: 11.7 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.863e-06/0.2737, allocations: 7.938 kB / 1.066 GB, free: 11.7 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.875e-06/0.2737, allocations: 0 / 1.066 GB, free: 11.7 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.647e-06/0.2737, allocations: 0 / 1.066 GB, free: 11.7 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.463e-05/0.2737, allocations: 4 kB / 1.066 GB, free: 11.69 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003013/0.274, allocations: 249 kB / 1.067 GB, free: 11.4 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 9.415e-05/0.2741, allocations: 38.5 kB / 1.067 GB, free: 11.35 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.949e-05/0.2742, allocations: 24.89 kB / 1.067 GB, free: 11.32 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.048e-05/0.2742, allocations: 3.984 kB / 1.067 GB, free: 11.32 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001516/0.2744, allocations: 55.41 kB / 1.067 GB, free: 11.25 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=5): time 1.323e-06/0.2744, allocations: 0 / 1.067 GB, free: 11.25 MB / 0.8262 GB Notification: Performance of matching and sorting (n=5): time 0.0002062/0.2746, allocations: 77.58 kB / 1.067 GB, free: 11.17 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.507e-05/0.2746, allocations: 55.34 kB / 1.067 GB, free: 11.11 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.403e-05/0.2747, allocations: 105.8 kB / 1.067 GB, free: 10.99 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.348e-05/0.2747, allocations: 29.7 kB / 1.067 GB, free: 10.96 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 3.653e-05/0.2748, allocations: 88.14 kB / 1.067 GB, free: 10.87 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 1.671e-05/0.2748, allocations: 11.83 kB / 1.067 GB, free: 10.86 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.288e-05/0.2748, allocations: 25.7 kB / 1.067 GB, free: 10.82 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001022/0.275, allocations: 314.8 kB / 1.067 GB, free: 10.51 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.199e-05/0.275, allocations: 4 kB / 1.067 GB, free: 10.5 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.636e-05/0.275, allocations: 43.36 kB / 1.067 GB, free: 10.45 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.153e-05/0.2751, allocations: 51.36 kB / 1.067 GB, free: 10.39 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/0.2751, allocations: 7.875 kB / 1.067 GB, free: 10.38 MB / 0.8262 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001137/0.2752, allocations: 77.53 kB / 1.068 GB, free: 10.3 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.329e-05/0.2752, allocations: 4 kB / 1.068 GB, free: 10.29 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.599e-06/0.2753, allocations: 0 / 1.068 GB, free: 10.29 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.134e-05/0.2753, allocations: 8.156 kB / 1.068 GB, free: 10.29 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.508e-05/0.2753, allocations: 15.92 kB / 1.068 GB, free: 10.27 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.879e-06/0.2753, allocations: 0 / 1.068 GB, free: 10.27 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.765e-05/0.2754, allocations: 3.984 kB / 1.068 GB, free: 10.27 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.147e-06/0.2754, allocations: 4 kB / 1.068 GB, free: 10.26 MB / 0.8262 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 7.118e-05/0.2755, allocations: 117.8 kB / 1.068 GB, free: 10.14 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.402e-05/0.2755, allocations: 3.906 kB / 1.068 GB, free: 10.13 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.183e-05/0.2755, allocations: 3.969 kB / 1.068 GB, free: 10.13 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.743e-06/0.2755, allocations: 4 kB / 1.068 GB, free: 10.12 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/0.2755, allocations: 4 kB / 1.068 GB, free: 10.12 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.088e-05/0.2755, allocations: 3.984 kB / 1.068 GB, free: 10.12 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000251/0.2758, allocations: 303 kB / 1.068 GB, free: 9.766 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.2758, allocations: 0 / 1.068 GB, free: 9.766 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.495e-05/0.2758, allocations: 12.05 kB / 1.068 GB, free: 9.754 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.195e-06/0.2759, allocations: 0 / 1.068 GB, free: 9.754 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.312e-06/0.2759, allocations: 0 / 1.068 GB, free: 9.754 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.362e-06/0.2759, allocations: 0 / 1.068 GB, free: 9.754 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.2759, allocations: 0 / 1.068 GB, free: 9.754 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001592/0.276, allocations: 167.5 kB / 1.068 GB, free: 9.574 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.625e-05/0.2761, allocations: 88.94 kB / 1.068 GB, free: 9.469 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.339e-05/0.2761, allocations: 0 / 1.068 GB, free: 9.469 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.529e-05/0.2762, allocations: 0 / 1.068 GB, free: 9.469 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.186e-05/0.2762, allocations: 7.938 kB / 1.068 GB, free: 9.461 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.011e-06/0.2762, allocations: 0 / 1.068 GB, free: 9.461 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.477e-05/0.2762, allocations: 87.27 kB / 1.068 GB, free: 9.375 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2763, allocations: 0 / 1.068 GB, free: 9.375 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002892/0.2765, allocations: 39.94 kB / 1.068 GB, free: 9.336 MB / 0.8262 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.0006775/0.2772, allocations: 0.7719 MB / 1.069 GB, free: 8.555 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.000122/0.2774, allocations: 43.92 kB / 1.069 GB, free: 8.512 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.523e-06/0.2774, allocations: 0 / 1.069 GB, free: 8.512 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 4.345e-05/0.2774, allocations: 19.94 kB / 1.069 GB, free: 8.492 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002033/0.2776, allocations: 1.719 kB / 1.069 GB, free: 8.492 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001081/0.2787, allocations: 1.282 MB / 1.07 GB, free: 7.117 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002406/0.279, allocations: 0.6768 MB / 1.071 GB, free: 6.414 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 2.256e-05/0.279, allocations: 4 kB / 1.071 GB, free: 6.41 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.038e-05/0.279, allocations: 15.44 kB / 1.071 GB, free: 6.395 MB / 0.8262 GB Notification: Performance of SimCode: time 2.5e-07/0.279, allocations: 0 / 1.071 GB, free: 6.395 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01634/0.2954, allocations: 2.055 MB / 1.073 GB, free: 4.434 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.366/7.661, allocations: 19.28 kB / 1.073 GB, free: 4.422 MB / 0.8262 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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Occupants.BaseClasses.Validation.Logit1DQuadratic_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 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.csv","/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:time,y