Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/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.Electrical.DC.Sensors.Examples.GeneralizedSensor,fileNamePrefix="Buildings_11_Buildings_Electrical_DC_Sensors_Examples_GeneralizedSensor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor,fileNamePrefix="Buildings_11_Buildings_Electrical_DC_Sensors_Examples_GeneralizedSensor",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.00145/0.00145, 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.001399/0.001399, allocations: 196.8 kB / 16.53 MB, free: 6.664 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.324/1.324, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.601/2.601, allocations: 469.8 MB / 0.7424 GB, free: 7.484 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002103/0.002103, allocations: 68.86 kB / 0.9087 GB, free: 34.24 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2533/0.2554, allocations: 159.2 MB / 1.064 GB, free: 14.25 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor): time 0.004008/0.2594, allocations: 2.502 MB / 1.067 GB, free: 11.73 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001322/0.2608, allocations: 0.7828 MB / 1.067 GB, free: 10.95 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.45e-05/0.2609, allocations: 7.938 kB / 1.067 GB, free: 10.94 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.001085/0.262, allocations: 0.519 MB / 1.068 GB, free: 10.42 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0002697/0.2623, allocations: 115.5 kB / 1.068 GB, free: 10.3 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002858/0.2626, allocations: 107.7 kB / 1.068 GB, free: 10.2 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0002455/0.2628, allocations: 195.4 kB / 1.068 GB, free: 10.01 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003473/0.2632, allocations: 166.1 kB / 1.068 GB, free: 9.844 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 9.835e-05/0.2633, allocations: 79.7 kB / 1.068 GB, free: 9.766 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001907/0.2635, allocations: 91.7 kB / 1.069 GB, free: 9.676 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.446e-05/0.2635, allocations: 12 kB / 1.069 GB, free: 9.664 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002192/0.2637, allocations: 119.7 kB / 1.069 GB, free: 9.547 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 6.666e-05/0.2638, allocations: 55.83 kB / 1.069 GB, free: 9.492 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 7.642e-05/0.2639, allocations: 67.66 kB / 1.069 GB, free: 9.426 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002783/0.2642, allocations: 219.6 kB / 1.069 GB, free: 9.211 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.357e-06/0.2642, allocations: 4 kB / 1.069 GB, free: 9.207 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.182e-06/0.2642, allocations: 4 kB / 1.069 GB, free: 9.203 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.428e-06/0.2642, allocations: 0 / 1.069 GB, free: 9.203 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: 37 * Number of variables: 37 Notification: Performance of Generate backend data structure: time 0.0005685/0.2648, allocations: 443.3 kB / 1.069 GB, free: 8.719 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.172e-05/0.2648, allocations: 8.031 kB / 1.069 GB, free: 8.711 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.131e-05/0.2649, allocations: 54.73 kB / 1.069 GB, free: 8.648 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003409/0.2652, allocations: 40.72 kB / 1.07 GB, free: 8.609 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002244/0.2655, allocations: 220 kB / 1.07 GB, free: 8.355 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.409e-05/0.2655, allocations: 8.656 kB / 1.07 GB, free: 8.348 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.084e-05/0.2655, allocations: 16.38 kB / 1.07 GB, free: 8.332 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000337/0.2658, allocations: 231.1 kB / 1.07 GB, free: 8.086 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.107e-06/0.2659, allocations: 0 / 1.07 GB, free: 8.086 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.835e-05/0.2659, allocations: 7.984 kB / 1.07 GB, free: 8.078 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.46e-05/0.2659, allocations: 20.2 kB / 1.07 GB, free: 8.059 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002264/0.2662, allocations: 148.6 kB / 1.07 GB, free: 7.914 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001079/0.2672, allocations: 1.138 MB / 1.071 GB, free: 6.645 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 7.236e-05/0.2673, allocations: 38.56 kB / 1.071 GB, free: 6.598 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.315e-05/0.2674, allocations: 16.86 kB / 1.071 GB, free: 6.578 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 9.317e-06/0.2674, allocations: 0 / 1.071 GB, free: 6.578 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.314e-05/0.2674, allocations: 30.56 kB / 1.071 GB, free: 6.539 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=4): time 9.52e-07/0.2674, allocations: 4 kB / 1.071 GB, free: 6.535 MB / 0.8262 GB Notification: Performance of matching and sorting (n=4): time 0.0001869/0.2676, allocations: 85.55 kB / 1.071 GB, free: 6.445 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.671e-05/0.2677, allocations: 51.41 kB / 1.071 GB, free: 6.383 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001583/0.2678, allocations: 172.8 kB / 1.072 GB, free: 6.207 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.663e-05/0.2679, allocations: 29.7 kB / 1.072 GB, free: 6.172 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 9.091e-05/0.2679, allocations: 143.4 kB / 1.072 GB, free: 6.027 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 1.272e-05/0.268, allocations: 11.75 kB / 1.072 GB, free: 6.016 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.846e-05/0.268, allocations: 37.64 kB / 1.072 GB, free: 5.973 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001289/0.2682, allocations: 314.8 kB / 1.072 GB, free: 5.656 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.238e-05/0.2682, allocations: 32.84 kB / 1.072 GB, free: 5.621 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.885e-05/0.2683, allocations: 90.17 kB / 1.072 GB, free: 5.5 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001461/0.2685, allocations: 125.2 kB / 1.072 GB, free: 5.344 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.2685, allocations: 0 / 1.072 GB, free: 5.344 MB / 0.8262 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001949/0.2687, allocations: 129.6 kB / 1.072 GB, free: 5.211 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.196e-05/0.2687, allocations: 13.5 kB / 1.073 GB, free: 5.199 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.568e-06/0.2687, allocations: 4.312 kB / 1.073 GB, free: 5.195 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.492e-05/0.2687, allocations: 11.94 kB / 1.073 GB, free: 5.184 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001001/0.2688, allocations: 19.98 kB / 1.073 GB, free: 5.164 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.999e-06/0.2688, allocations: 4 kB / 1.073 GB, free: 5.16 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.508e-05/0.2689, allocations: 23.83 kB / 1.073 GB, free: 5.137 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.067e-05/0.2689, allocations: 11.94 kB / 1.073 GB, free: 5.125 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 9.744e-05/0.269, allocations: 120.1 kB / 1.073 GB, free: 5.004 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 8.765e-05/0.2691, allocations: 86.44 kB / 1.073 GB, free: 4.887 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001331/0.2693, allocations: 125.2 kB / 1.073 GB, free: 4.73 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.146e-06/0.2693, allocations: 3.984 kB / 1.073 GB, free: 4.727 MB / 0.8262 GB Notification: Performance of matching and sorting (n=14) (initialization_lambda0): time 0.0001887/0.2695, allocations: 137.3 kB / 1.073 GB, free: 4.586 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 8.636e-06/0.2695, allocations: 8 kB / 1.073 GB, free: 4.578 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.844e-06/0.2695, allocations: 0 / 1.073 GB, free: 4.578 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.69e-06/0.2695, allocations: 7.984 kB / 1.073 GB, free: 4.57 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.799e-05/0.2696, allocations: 27.88 kB / 1.073 GB, free: 4.543 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.458e-06/0.2696, allocations: 4 kB / 1.073 GB, free: 4.539 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.78e-05/0.2697, allocations: 11.94 kB / 1.073 GB, free: 4.527 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.598e-06/0.2697, allocations: 7.984 kB / 1.073 GB, free: 4.52 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 14 * 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 9.98e-05/0.2698, allocations: 192.4 kB / 1.073 GB, free: 4.324 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.125e-05/0.2698, allocations: 7.906 kB / 1.073 GB, free: 4.316 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.814e-05/0.2698, allocations: 16.88 kB / 1.073 GB, free: 4.297 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.683e-06/0.2699, allocations: 0 / 1.073 GB, free: 4.297 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.2699, allocations: 4 kB / 1.073 GB, free: 4.293 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.645e-06/0.2699, allocations: 0 / 1.073 GB, free: 4.293 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004337/0.2703, allocations: 473.1 kB / 1.074 GB, free: 3.762 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.313e-06/0.2703, allocations: 0 / 1.074 GB, free: 3.762 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.857e-05/0.2704, allocations: 15.92 kB / 1.074 GB, free: 3.746 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.834e-06/0.2704, allocations: 0 / 1.074 GB, free: 3.746 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.581e-06/0.2704, allocations: 0 / 1.074 GB, free: 3.746 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.587e-06/0.2704, allocations: 4 kB / 1.074 GB, free: 3.742 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.2704, allocations: 0 / 1.074 GB, free: 3.742 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001227/0.2705, allocations: 111.7 kB / 1.074 GB, free: 3.605 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 6.669e-05/0.2706, allocations: 92.91 kB / 1.074 GB, free: 3.496 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.937e-05/0.2706, allocations: 4 kB / 1.074 GB, free: 3.492 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.569e-05/0.2707, allocations: 11.88 kB / 1.074 GB, free: 3.48 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.049e-05/0.2707, allocations: 0 / 1.074 GB, free: 3.48 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.352e-06/0.2707, allocations: 7.984 kB / 1.074 GB, free: 3.473 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 9.628e-05/0.2708, allocations: 129.6 kB / 1.074 GB, free: 3.348 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1e-07/0.2708, allocations: 0 / 1.074 GB, free: 3.348 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.000335/0.2711, allocations: 51.84 kB / 1.074 GB, free: 3.297 MB / 0.8262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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 Backend phase and start with SimCode phase: time 0.0003961/0.2715, allocations: 0.6577 MB / 1.075 GB, free: 2.598 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001862/0.2717, allocations: 103.8 kB / 1.075 GB, free: 2.496 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.2717, allocations: 1.25 kB / 1.075 GB, free: 2.496 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 2.64e-05/0.2718, allocations: 15.94 kB / 1.075 GB, free: 2.48 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002329/0.272, allocations: 33.03 kB / 1.075 GB, free: 2.449 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001651/0.2737, allocations: 1.731 MB / 1.077 GB, free: 0.5586 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003297/0.274, allocations: 0.7241 MB / 1.077 GB, free: 15.81 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 8.164e-05/0.2741, allocations: 24.61 kB / 1.077 GB, free: 15.79 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.05e-05/0.2742, allocations: 39.42 kB / 1.077 GB, free: 15.75 MB / 0.8419 GB Notification: Performance of SimCode: time 1.963e-06/0.2742, allocations: 0 / 1.077 GB, free: 15.75 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8968/1.171, allocations: 2.362 MB / 1.08 GB, free: 13.47 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.74/13.92, allocations: 10.17 kB / 1.08 GB, free: 13.46 MB / 0.8419 GB (rm -f Buildings_11_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_11_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_11_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_11_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor_res.mat --tempDir=temp_Buildings_11_Buildings_Electrical_DC_Sensors_Examples_GeneralizedSensor_fmu --startTime=0 --stopTime=1 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Electrical_DC_Sensors_Examples_GeneralizedSensor.fmu > Buildings_11_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Electrical_DC_Sensors_Examples_GeneralizedSensor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches