Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Electrical.AC.OnePhase.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.AC.OnePhase.Sensors.Examples.GeneralizedSensor,fileNamePrefix="Buildings_11_Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor,fileNamePrefix="Buildings_11_Buildings_Electrical_AC_OnePhase_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.001753/0.001753, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.002054/0.002054, allocations: 199.3 kB / 16.26 MB, free: 6.621 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.446/1.446, allocations: 222.9 MB / 239.9 MB, free: 4.531 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.735/2.735, allocations: 469.8 MB / 0.7421 GB, free: 7.602 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001798/0.001798, allocations: 62.33 kB / 0.9082 GB, free: 34.5 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2508/0.2526, allocations: 159.2 MB / 1.064 GB, free: 14.52 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.004351/0.257, allocations: 3.124 MB / 1.067 GB, free: 11.38 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.00235/0.2594, allocations: 1.706 MB / 1.068 GB, free: 9.664 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.71e-05/0.2595, allocations: 11.94 kB / 1.068 GB, free: 9.652 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0008203/0.2603, allocations: 314.9 kB / 1.069 GB, free: 9.344 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0003572/0.2607, allocations: 191.3 kB / 1.069 GB, free: 9.156 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003483/0.261, allocations: 164.2 kB / 1.069 GB, free: 8.996 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0003267/0.2614, allocations: 319 kB / 1.069 GB, free: 8.684 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004112/0.2618, allocations: 276.9 kB / 1.07 GB, free: 8.414 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001621/0.2619, allocations: 135.5 kB / 1.07 GB, free: 8.281 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000255/0.2622, allocations: 171.4 kB / 1.07 GB, free: 8.113 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.98e-05/0.2622, allocations: 20 kB / 1.07 GB, free: 8.094 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003145/0.2626, allocations: 235.5 kB / 1.07 GB, free: 7.863 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001024/0.2627, allocations: 103.8 kB / 1.07 GB, free: 7.762 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001243/0.2628, allocations: 119.4 kB / 1.07 GB, free: 7.645 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0004577/0.2633, allocations: 446.6 kB / 1.071 GB, free: 7.207 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 2.394e-06/0.2633, allocations: 0 / 1.071 GB, free: 7.207 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.203e-06/0.2633, allocations: 3.938 kB / 1.071 GB, free: 7.203 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 8.486e-06/0.2633, allocations: 4 kB / 1.071 GB, free: 7.199 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: 59 * Number of variables: 59 Notification: Performance of Generate backend data structure: time 0.0008012/0.2641, allocations: 0.5398 MB / 1.071 GB, free: 6.613 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 2.745e-05/0.2641, allocations: 8.031 kB / 1.071 GB, free: 6.605 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.57e-05/0.2642, allocations: 62.72 kB / 1.071 GB, free: 6.535 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006418/0.2649, allocations: 92.55 kB / 1.071 GB, free: 6.445 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000278/0.2651, allocations: 255.9 kB / 1.072 GB, free: 6.156 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.664e-05/0.2652, allocations: 16.81 kB / 1.072 GB, free: 6.141 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.178e-05/0.2653, allocations: 24.56 kB / 1.072 GB, free: 6.117 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005412/0.2658, allocations: 373 kB / 1.072 GB, free: 5.734 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.081e-05/0.2658, allocations: 7.938 kB / 1.072 GB, free: 5.727 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.726e-05/0.2659, allocations: 7.984 kB / 1.072 GB, free: 5.719 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.5e-05/0.266, allocations: 28.42 kB / 1.072 GB, free: 5.691 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000457/0.2664, allocations: 313.4 kB / 1.072 GB, free: 5.383 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001682/0.2681, allocations: 1.533 MB / 1.074 GB, free: 3.699 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004046/0.2685, allocations: 228.7 kB / 1.074 GB, free: 3.469 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001548/0.2687, allocations: 120.8 kB / 1.074 GB, free: 3.348 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001305/0.2688, allocations: 85.09 kB / 1.074 GB, free: 3.246 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.42e-05/0.2689, allocations: 34.56 kB / 1.074 GB, free: 3.203 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=18): time 1.162e-06/0.2689, allocations: 0 / 1.074 GB, free: 3.203 MB / 0.8262 GB Notification: Performance of matching and sorting (n=19): time 0.001164/0.27, allocations: 0.7946 MB / 1.075 GB, free: 2.359 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.29e-05/0.2701, allocations: 55.41 kB / 1.075 GB, free: 2.293 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001787/0.2703, allocations: 198.6 kB / 1.075 GB, free: 2.09 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.751e-05/0.2703, allocations: 33.7 kB / 1.075 GB, free: 2.051 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 9.745e-05/0.2704, allocations: 159.9 kB / 1.076 GB, free: 1.891 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 5.521e-05/0.2705, allocations: 67 kB / 1.076 GB, free: 1.824 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.537e-05/0.2706, allocations: 57.69 kB / 1.076 GB, free: 1.762 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001363/0.2707, allocations: 334.7 kB / 1.076 GB, free: 1.426 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001762/0.2709, allocations: 119.9 kB / 1.076 GB, free: 1.309 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002049/0.2711, allocations: 161.9 kB / 1.076 GB, free: 1.129 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003908/0.2715, allocations: 299.1 kB / 1.077 GB, free: 0.8164 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.152e-06/0.2715, allocations: 3.938 kB / 1.077 GB, free: 0.8125 MB / 0.8262 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007299/0.2722, allocations: 415.8 kB / 1.077 GB, free: 408 kB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.105e-05/0.2722, allocations: 4 kB / 1.077 GB, free: 404 kB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.675e-06/0.2723, allocations: 4.188 kB / 1.077 GB, free: 400 kB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003737/0.2726, allocations: 100.7 kB / 1.077 GB, free: 296 kB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002284/0.2729, allocations: 51.95 kB / 1.077 GB, free: 244 kB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001935/0.2748, allocations: 1.879 MB / 1.079 GB, free: 14.21 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002115/0.275, allocations: 23.86 kB / 1.079 GB, free: 14.19 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.993e-05/0.2751, allocations: 8 kB / 1.079 GB, free: 14.18 MB / 0.8419 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 (26): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001409/0.2752, allocations: 153.8 kB / 1.079 GB, free: 14.02 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.689e-05/0.2753, allocations: 15.81 kB / 1.079 GB, free: 14.01 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004749/0.2758, allocations: 311.1 kB / 1.079 GB, free: 13.7 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.974e-06/0.2758, allocations: 0 / 1.079 GB, free: 13.7 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.072e-06/0.2758, allocations: 0 / 1.079 GB, free: 13.7 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.643e-06/0.2758, allocations: 7.938 kB / 1.079 GB, free: 13.69 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008931/0.2767, allocations: 0.6965 MB / 1.08 GB, free: 12.93 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.656e-06/0.2767, allocations: 8.234 kB / 1.08 GB, free: 12.93 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002916/0.277, allocations: 63.91 kB / 1.08 GB, free: 12.86 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.853e-06/0.277, allocations: 7.922 kB / 1.08 GB, free: 12.86 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.894e-05/0.277, allocations: 4 kB / 1.08 GB, free: 12.85 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.714e-06/0.277, allocations: 0 / 1.08 GB, free: 12.85 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.277, allocations: 0 / 1.08 GB, free: 12.85 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006177/0.2777, allocations: 0.514 MB / 1.081 GB, free: 12.32 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00011/0.2778, allocations: 120.9 kB / 1.081 GB, free: 12.18 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.575e-05/0.2778, allocations: 8 kB / 1.081 GB, free: 12.17 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00017/0.278, allocations: 7.984 kB / 1.081 GB, free: 12.16 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.39e-05/0.278, allocations: 15.98 kB / 1.081 GB, free: 12.15 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.297e-05/0.2781, allocations: 4 kB / 1.081 GB, free: 12.14 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.000136/0.2782, allocations: 148 kB / 1.081 GB, free: 12 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2782, allocations: 0 / 1.081 GB, free: 12 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003168/0.2785, allocations: 64 kB / 1.081 GB, free: 11.93 MB / 0.8419 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (loa.q[1],loa.q[2]) * 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 (20): * Single equations (assignments): 20 * 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.0009183/0.2794, allocations: 1.071 MB / 1.082 GB, free: 10.83 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0007005/0.2802, allocations: 450.6 kB / 1.083 GB, free: 10.38 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.2802, allocations: 0 / 1.083 GB, free: 10.38 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001727/0.2804, allocations: 123.8 kB / 1.083 GB, free: 10.25 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003305/0.2807, allocations: 38.91 kB / 1.083 GB, free: 10.22 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003618/0.2843, allocations: 2.965 MB / 1.086 GB, free: 7.121 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003634/0.2847, allocations: 0.7753 MB / 1.086 GB, free: 6.32 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0001669/0.2849, allocations: 57.91 kB / 1.086 GB, free: 6.266 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001129/0.285, allocations: 60.17 kB / 1.086 GB, free: 6.207 MB / 0.8419 GB Notification: Performance of SimCode: time 2.3e-07/0.285, allocations: 4 kB / 1.086 GB, free: 6.203 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.817/2.102, allocations: 4.949 MB / 1.091 GB, free: 1.465 MB / 0.8419 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003762/2.102, allocations: 239.1 kB / 1.091 GB, free: 1.215 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.94/4.043, allocations: 2.672 kB / 1.091 GB, free: 1.215 MB / 0.8419 GB (rm -f Buildings_11_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_11_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_11_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_11_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor_res.mat --tempDir=temp_Buildings_11_Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor_fmu --startTime=0 --stopTime=1 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor.fmu > Buildings_11_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches