Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor,fileNamePrefix="Buildings_latest_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.001285/0.001285, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001462/0.001462, allocations: 193.3 kB / 16.14 MB, free: 6.711 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.236/1.236, allocations: 222.9 MB / 239.8 MB, free: 4.621 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.426/2.426, allocations: 461.8 MB / 0.7342 GB, free: 14.15 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001135/0.001135, allocations: 61.73 kB / 0.8985 GB, free: 36.87 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2409/0.242, allocations: 157.4 MB / 1.052 GB, free: 8.16 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.004398/0.2465, allocations: 3.126 MB / 1.055 GB, free: 5.016 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002402/0.2489, allocations: 1.737 MB / 1.057 GB, free: 3.27 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000108/0.249, allocations: 4 kB / 1.057 GB, free: 3.266 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0008347/0.2499, allocations: 315 kB / 1.057 GB, free: 2.957 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0003954/0.2503, allocations: 199.3 kB / 1.057 GB, free: 2.762 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003362/0.2506, allocations: 163.7 kB / 1.058 GB, free: 2.602 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0003846/0.251, allocations: 474.7 kB / 1.058 GB, free: 2.137 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003729/0.2514, allocations: 232.8 kB / 1.058 GB, free: 1.91 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001497/0.2515, allocations: 119.6 kB / 1.058 GB, free: 1.793 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002587/0.2518, allocations: 159.5 kB / 1.059 GB, free: 1.637 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.339e-05/0.2518, allocations: 20 kB / 1.059 GB, free: 1.617 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003771/0.2522, allocations: 291.4 kB / 1.059 GB, free: 1.332 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 9.314e-05/0.2523, allocations: 87.78 kB / 1.059 GB, free: 1.246 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001191/0.2525, allocations: 123.4 kB / 1.059 GB, free: 1.125 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0004199/0.2529, allocations: 422.7 kB / 1.059 GB, free: 0.7109 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.84e-06/0.2529, allocations: 7.984 kB / 1.059 GB, free: 0.7031 MB / 0.8106 GB Notification: Performance of FrontEnd: time 8.12e-07/0.2529, allocations: 0 / 1.059 GB, free: 0.7031 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.849e-06/0.2529, allocations: 0 / 1.059 GB, free: 0.7031 MB / 0.8106 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.0008354/0.2538, allocations: 0.5514 MB / 1.06 GB, free: 108 kB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.433e-05/0.2538, allocations: 15.97 kB / 1.06 GB, free: 92 kB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.185e-05/0.2539, allocations: 54.73 kB / 1.06 GB, free: 28 kB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006935/0.2546, allocations: 92.55 kB / 1.06 GB, free: 15.94 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002474/0.2548, allocations: 251.9 kB / 1.06 GB, free: 15.65 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.764e-05/0.2548, allocations: 16.8 kB / 1.06 GB, free: 15.64 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.805e-05/0.2549, allocations: 32.48 kB / 1.06 GB, free: 15.61 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004945/0.2554, allocations: 376.9 kB / 1.061 GB, free: 15.21 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.109e-05/0.2555, allocations: 0 / 1.061 GB, free: 15.21 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.043e-05/0.2555, allocations: 12 kB / 1.061 GB, free: 15.2 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.465e-05/0.2556, allocations: 36.39 kB / 1.061 GB, free: 15.17 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004307/0.256, allocations: 305.5 kB / 1.061 GB, free: 14.87 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001567/0.2576, allocations: 1.525 MB / 1.063 GB, free: 13.19 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003914/0.258, allocations: 230.3 kB / 1.063 GB, free: 12.96 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001523/0.2582, allocations: 124.7 kB / 1.063 GB, free: 12.83 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001263/0.2583, allocations: 85.11 kB / 1.063 GB, free: 12.73 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.092e-05/0.2583, allocations: 42.55 kB / 1.063 GB, free: 12.68 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=18): time 1.233e-06/0.2583, allocations: 0 / 1.063 GB, free: 12.68 MB / 0.8262 GB Notification: Performance of matching and sorting (n=19): time 0.001122/0.2595, allocations: 0.7903 MB / 1.064 GB, free: 11.84 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.464e-05/0.2595, allocations: 51.41 kB / 1.064 GB, free: 11.78 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001667/0.2597, allocations: 203.2 kB / 1.064 GB, free: 11.57 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.913e-05/0.2597, allocations: 25.7 kB / 1.064 GB, free: 11.54 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 8.457e-05/0.2598, allocations: 163.8 kB / 1.064 GB, free: 11.38 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 4.85e-05/0.2598, allocations: 75 kB / 1.064 GB, free: 11.3 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.39e-05/0.2599, allocations: 57.64 kB / 1.064 GB, free: 11.24 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001028/0.26, allocations: 334.8 kB / 1.065 GB, free: 10.9 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001565/0.2602, allocations: 107.9 kB / 1.065 GB, free: 10.8 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00019/0.2604, allocations: 161.9 kB / 1.065 GB, free: 10.62 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003531/0.2608, allocations: 299.8 kB / 1.065 GB, free: 10.3 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.152e-06/0.2608, allocations: 0 / 1.065 GB, free: 10.3 MB / 0.8262 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007033/0.2615, allocations: 418.5 kB / 1.066 GB, free: 9.887 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.409e-05/0.2615, allocations: 11.98 kB / 1.066 GB, free: 9.875 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.248e-06/0.2615, allocations: 0 / 1.066 GB, free: 9.875 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003927/0.2619, allocations: 101 kB / 1.066 GB, free: 9.773 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002396/0.2621, allocations: 55.88 kB / 1.066 GB, free: 9.719 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00167/0.2638, allocations: 1.734 MB / 1.068 GB, free: 7.848 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002066/0.264, allocations: 20 kB / 1.068 GB, free: 7.828 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.166e-05/0.2641, allocations: 12 kB / 1.068 GB, free: 7.816 MB / 0.8262 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.000139/0.2642, allocations: 162.6 kB / 1.068 GB, free: 7.648 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.745e-05/0.2643, allocations: 19.8 kB / 1.068 GB, free: 7.629 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004399/0.2647, allocations: 296.8 kB / 1.068 GB, free: 7.34 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.437e-06/0.2647, allocations: 4 kB / 1.068 GB, free: 7.336 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.102e-06/0.2647, allocations: 3.938 kB / 1.068 GB, free: 7.332 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.745e-06/0.2647, allocations: 0 / 1.068 GB, free: 7.332 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008102/0.2656, allocations: 0.7155 MB / 1.069 GB, free: 6.555 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.764e-06/0.2656, allocations: 0 / 1.069 GB, free: 6.555 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002911/0.2659, allocations: 55.95 kB / 1.069 GB, free: 6.5 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.224e-06/0.2659, allocations: 0 / 1.069 GB, free: 6.5 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.76e-05/0.2659, allocations: 8 kB / 1.069 GB, free: 6.492 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.2659, allocations: 0 / 1.069 GB, free: 6.492 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.917e-06/0.2659, allocations: 11.88 kB / 1.069 GB, free: 6.48 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005742/0.2665, allocations: 0.5135 MB / 1.069 GB, free: 5.945 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 9.917e-05/0.2666, allocations: 108.9 kB / 1.069 GB, free: 5.82 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.712e-05/0.2666, allocations: 11.98 kB / 1.069 GB, free: 5.809 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001718/0.2668, allocations: 11.92 kB / 1.069 GB, free: 5.797 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.54e-05/0.2669, allocations: 15.98 kB / 1.069 GB, free: 5.781 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.312e-05/0.2669, allocations: 7.938 kB / 1.069 GB, free: 5.773 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.000117/0.267, allocations: 148.1 kB / 1.07 GB, free: 5.625 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.3e-07/0.267, allocations: 0 / 1.07 GB, free: 5.625 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003302/0.2673, allocations: 68 kB / 1.07 GB, free: 5.559 MB / 0.8262 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.0008677/0.2682, allocations: 1.063 MB / 1.071 GB, free: 4.461 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0006359/0.2689, allocations: 414.3 kB / 1.071 GB, free: 4.043 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.2689, allocations: 0 / 1.071 GB, free: 4.043 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001639/0.269, allocations: 129.4 kB / 1.071 GB, free: 3.918 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003559/0.2694, allocations: 40.45 kB / 1.071 GB, free: 3.883 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003563/0.273, allocations: 2.963 MB / 1.074 GB, free: 0.7891 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003585/0.2734, allocations: 0.7792 MB / 1.075 GB, free: 15.98 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0001673/0.2735, allocations: 61.84 kB / 1.075 GB, free: 15.92 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001124/0.2736, allocations: 71.41 kB / 1.075 GB, free: 15.85 MB / 0.8419 GB Notification: Performance of SimCode: time 3.21e-07/0.2737, allocations: 0 / 1.075 GB, free: 15.85 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01462/0.2883, allocations: 4.796 MB / 1.08 GB, free: 11.25 MB / 0.8419 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002153/0.2885, allocations: 246 kB / 1.08 GB, free: 11 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.661/1.949, allocations: 1.562 kB / 1.08 GB, free: 11 MB / 0.8419 GB (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor.fmu > Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches