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.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.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.001616/0.001616, allocations: 108 kB / 15.6 MB, free: 128 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.001818/0.001818, allocations: 196.6 kB / 16.53 MB, free: 6.672 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.292/1.292, allocations: 222.9 MB / 240.2 MB, free: 4.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.505/2.505, allocations: 461.9 MB / 0.7347 GB, free: 14.75 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001243/0.001243, allocations: 62.92 kB / 0.8992 GB, free: 37.05 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2397/0.241, allocations: 157.4 MB / 1.053 GB, free: 8.289 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.004474/0.2455, allocations: 3.081 MB / 1.056 GB, free: 5.191 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002465/0.248, allocations: 1.733 MB / 1.058 GB, free: 3.449 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001382/0.2481, allocations: 4 kB / 1.058 GB, free: 3.445 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0009259/0.2491, allocations: 330.7 kB / 1.058 GB, free: 3.121 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.000469/0.2495, allocations: 207.1 kB / 1.058 GB, free: 2.918 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004344/0.25, allocations: 199.4 kB / 1.058 GB, free: 2.723 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0003256/0.2503, allocations: 315 kB / 1.059 GB, free: 2.414 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003602/0.2507, allocations: 237 kB / 1.059 GB, free: 2.184 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000199/0.2509, allocations: 139.5 kB / 1.059 GB, free: 2.047 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002892/0.2512, allocations: 155.5 kB / 1.059 GB, free: 1.895 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 4.459e-05/0.2513, allocations: 24 kB / 1.059 GB, free: 1.871 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003784/0.2516, allocations: 247.5 kB / 1.059 GB, free: 1.629 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001069/0.2518, allocations: 95.78 kB / 1.059 GB, free: 1.535 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.000125/0.2519, allocations: 131.3 kB / 1.06 GB, free: 1.406 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0004972/0.2524, allocations: 414.7 kB / 1.06 GB, free: 1 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.648e-06/0.2524, allocations: 0 / 1.06 GB, free: 1 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.382e-06/0.2524, allocations: 0 / 1.06 GB, free: 1 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 8.376e-06/0.2524, allocations: 0 / 1.06 GB, free: 1 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.0008916/0.2533, allocations: 0.5537 MB / 1.061 GB, free: 408 kB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.407e-05/0.2534, allocations: 8.625 kB / 1.061 GB, free: 400 kB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.852e-05/0.2534, allocations: 58.73 kB / 1.061 GB, free: 332 kB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007057/0.2541, allocations: 96.55 kB / 1.061 GB, free: 236 kB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003734/0.2545, allocations: 253.2 kB / 1.061 GB, free: 15.94 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.716e-05/0.2546, allocations: 16.8 kB / 1.061 GB, free: 15.93 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.909e-05/0.2546, allocations: 32.55 kB / 1.061 GB, free: 15.89 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005196/0.2552, allocations: 376.9 kB / 1.061 GB, free: 15.5 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.384e-05/0.2552, allocations: 0 / 1.061 GB, free: 15.5 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.947e-05/0.2552, allocations: 4 kB / 1.061 GB, free: 15.5 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.261e-05/0.2553, allocations: 28.42 kB / 1.061 GB, free: 15.47 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004601/0.2558, allocations: 309.5 kB / 1.062 GB, free: 15.17 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00184/0.2576, allocations: 1.537 MB / 1.063 GB, free: 13.48 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004099/0.2581, allocations: 233.6 kB / 1.063 GB, free: 13.25 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001498/0.2582, allocations: 112.8 kB / 1.063 GB, free: 13.14 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001362/0.2584, allocations: 93.09 kB / 1.064 GB, free: 13.03 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.72e-05/0.2584, allocations: 34.56 kB / 1.064 GB, free: 12.98 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=18): time 1.323e-06/0.2584, allocations: 0 / 1.064 GB, free: 12.98 MB / 0.8262 GB Notification: Performance of matching and sorting (n=19): time 0.001144/0.2596, allocations: 0.7915 MB / 1.064 GB, free: 12.14 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.595e-05/0.2596, allocations: 59.41 kB / 1.064 GB, free: 12.07 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001706/0.2598, allocations: 195.2 kB / 1.065 GB, free: 11.88 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.998e-05/0.2598, allocations: 33.7 kB / 1.065 GB, free: 11.84 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 8.67e-05/0.2599, allocations: 159.8 kB / 1.065 GB, free: 11.68 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 5.172e-05/0.26, allocations: 78.92 kB / 1.065 GB, free: 11.6 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.753e-05/0.2601, allocations: 49.7 kB / 1.065 GB, free: 11.54 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 9.808e-05/0.2602, allocations: 334.8 kB / 1.065 GB, free: 11.21 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001621/0.2603, allocations: 111.9 kB / 1.065 GB, free: 11.1 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001928/0.2605, allocations: 165.9 kB / 1.066 GB, free: 10.91 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003807/0.2609, allocations: 291.2 kB / 1.066 GB, free: 10.61 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.2609, allocations: 0 / 1.066 GB, free: 10.61 MB / 0.8262 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007275/0.2617, allocations: 421.6 kB / 1.066 GB, free: 10.19 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.611e-05/0.2617, allocations: 7.938 kB / 1.066 GB, free: 10.18 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.462e-06/0.2617, allocations: 4 kB / 1.066 GB, free: 10.18 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003846/0.2621, allocations: 104.9 kB / 1.066 GB, free: 10.07 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002336/0.2623, allocations: 47.97 kB / 1.066 GB, free: 10.03 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001852/0.2642, allocations: 1.879 MB / 1.068 GB, free: 8.004 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002159/0.2644, allocations: 19.95 kB / 1.068 GB, free: 7.984 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.316e-05/0.2645, allocations: 19.92 kB / 1.068 GB, free: 7.965 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.0001519/0.2646, allocations: 157.8 kB / 1.068 GB, free: 7.801 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.802e-05/0.2647, allocations: 15.81 kB / 1.068 GB, free: 7.785 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000474/0.2652, allocations: 303.3 kB / 1.069 GB, free: 7.488 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.375e-06/0.2652, allocations: 0 / 1.069 GB, free: 7.488 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.936e-06/0.2652, allocations: 4 kB / 1.069 GB, free: 7.484 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.742e-06/0.2652, allocations: 7.922 kB / 1.069 GB, free: 7.477 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008413/0.266, allocations: 0.6952 MB / 1.069 GB, free: 6.719 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.266, allocations: 0 / 1.069 GB, free: 6.719 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002866/0.2663, allocations: 63.95 kB / 1.069 GB, free: 6.656 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.648e-06/0.2663, allocations: 3.938 kB / 1.069 GB, free: 6.652 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.937e-05/0.2664, allocations: 8 kB / 1.069 GB, free: 6.645 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.773e-06/0.2664, allocations: 0 / 1.069 GB, free: 6.645 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/0.2664, allocations: 4 kB / 1.069 GB, free: 6.641 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005543/0.2669, allocations: 0.5071 MB / 1.07 GB, free: 6.113 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000104/0.2671, allocations: 124.9 kB / 1.07 GB, free: 5.973 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.283e-05/0.2671, allocations: 4 kB / 1.07 GB, free: 5.969 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001726/0.2673, allocations: 16.03 kB / 1.07 GB, free: 5.953 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.35e-05/0.2673, allocations: 15.98 kB / 1.07 GB, free: 5.938 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.371e-05/0.2673, allocations: 8 kB / 1.07 GB, free: 5.93 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001225/0.2675, allocations: 152 kB / 1.07 GB, free: 5.777 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.8e-07/0.2675, allocations: 0 / 1.07 GB, free: 5.777 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003467/0.2678, allocations: 64 kB / 1.07 GB, free: 5.715 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.0009211/0.2687, allocations: 1.065 MB / 1.071 GB, free: 4.617 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0007/0.2695, allocations: 450.6 kB / 1.072 GB, free: 4.164 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.2695, allocations: 0 / 1.072 GB, free: 4.164 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001588/0.2696, allocations: 119.7 kB / 1.072 GB, free: 4.047 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003509/0.27, allocations: 37.84 kB / 1.072 GB, free: 4.012 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003436/0.2734, allocations: 2.872 MB / 1.075 GB, free: 1.004 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003241/0.2738, allocations: 0.7792 MB / 1.076 GB, free: 204 kB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001751/0.274, allocations: 57.91 kB / 1.076 GB, free: 148 kB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001096/0.2741, allocations: 67.41 kB / 1.076 GB, free: 80 kB / 0.8262 GB Notification: Performance of SimCode: time 3.2e-07/0.2741, allocations: 0 / 1.076 GB, free: 80 kB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7697/1.044, allocations: 5.008 MB / 1.081 GB, free: 11.23 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.39/14.43, allocations: 0 / 1.081 GB, free: 11.23 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