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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001879/0.001879, allocations: 109.2 kB / 18.94 MB, free: 2.949 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002648/0.002648, allocations: 219.5 kB / 22.26 MB, free: 5.125 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.402/1.402, allocations: 230.6 MB / 256 MB, free: 8 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.123/3.123, allocations: 0.505 GB / 0.8101 GB, free: 22.09 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001966/0.001966, allocations: 75.28 kB / 1.177 GB, free: 17.09 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3322/0.3342, allocations: 180.2 MB / 1.353 GB, free: 8.512 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.005317/0.3395, allocations: 3.217 MB / 1.356 GB, free: 5.281 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.003059/0.3426, allocations: 1.808 MB / 1.358 GB, free: 3.465 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001708/0.3427, allocations: 7.938 kB / 1.358 GB, free: 3.457 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.001089/0.3438, allocations: 350.6 kB / 1.358 GB, free: 3.113 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.0005707/0.3444, allocations: 215.1 kB / 1.358 GB, free: 2.902 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005244/0.3449, allocations: 183.5 kB / 1.358 GB, free: 2.723 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0004823/0.3454, allocations: 315 kB / 1.359 GB, free: 2.414 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003908/0.3458, allocations: 184.9 kB / 1.359 GB, free: 2.227 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003153/0.3461, allocations: 147.5 kB / 1.359 GB, free: 2.082 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003888/0.3465, allocations: 171.4 kB / 1.359 GB, free: 1.914 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 5.083e-05/0.3465, allocations: 20 kB / 1.359 GB, free: 1.895 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004858/0.347, allocations: 247.5 kB / 1.36 GB, free: 1.652 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 0.0001369/0.3472, allocations: 99.78 kB / 1.36 GB, free: 1.555 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.0001567/0.3473, allocations: 123.4 kB / 1.36 GB, free: 1.434 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0006756/0.348, allocations: 426.5 kB / 1.36 GB, free: 1.016 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 3.978e-06/0.348, allocations: 4 kB / 1.36 GB, free: 1.012 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.423e-06/0.348, allocations: 0 / 1.36 GB, free: 1.012 MB / 1.045 GB Notification: Performance of Transformations before backend: time 1.001e-05/0.348, allocations: 4 kB / 1.36 GB, free: 1.008 MB / 1.045 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.001112/0.3491, allocations: 485.3 kB / 1.361 GB, free: 0.5039 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.47e-05/0.3492, allocations: 8.031 kB / 1.361 GB, free: 0.4961 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.594e-05/0.3493, allocations: 66.7 kB / 1.361 GB, free: 432 kB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007822/0.35, allocations: 96.64 kB / 1.361 GB, free: 336 kB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003677/0.3504, allocations: 202.1 kB / 1.361 GB, free: 108 kB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.19e-05/0.3504, allocations: 20.8 kB / 1.361 GB, free: 88 kB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.337e-05/0.3505, allocations: 20.56 kB / 1.361 GB, free: 68 kB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006026/0.3511, allocations: 376.5 kB / 1.361 GB, free: 15.67 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.487e-05/0.3511, allocations: 0 / 1.361 GB, free: 15.67 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.943e-05/0.3512, allocations: 8 kB / 1.361 GB, free: 15.66 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.716e-05/0.3513, allocations: 32.41 kB / 1.361 GB, free: 15.63 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004838/0.3518, allocations: 309.5 kB / 1.362 GB, free: 15.33 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001978/0.3537, allocations: 1.506 MB / 1.363 GB, free: 13.68 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004335/0.3542, allocations: 209.6 kB / 1.363 GB, free: 13.47 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001611/0.3543, allocations: 104.8 kB / 1.363 GB, free: 13.36 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001115/0.3544, allocations: 15.98 kB / 1.363 GB, free: 13.35 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.831e-05/0.3545, allocations: 34.56 kB / 1.364 GB, free: 13.3 MB / 1.061 GB Notification: Performance of pre-optimization done (n=18): time 1.233e-06/0.3545, allocations: 0 / 1.364 GB, free: 13.3 MB / 1.061 GB Notification: Performance of matching and sorting (n=19): time 0.001276/0.3557, allocations: 0.7191 MB / 1.364 GB, free: 12.55 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.367e-05/0.3558, allocations: 59.33 kB / 1.364 GB, free: 12.48 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002121/0.356, allocations: 190.7 kB / 1.364 GB, free: 12.29 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 2.742e-05/0.356, allocations: 29.7 kB / 1.364 GB, free: 12.25 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.000123/0.3562, allocations: 160.1 kB / 1.365 GB, free: 12.09 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 7.05e-05/0.3562, allocations: 79.36 kB / 1.365 GB, free: 12.01 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001068/0.3563, allocations: 61.69 kB / 1.365 GB, free: 11.95 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001531/0.3565, allocations: 330.8 kB / 1.365 GB, free: 11.61 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001935/0.3567, allocations: 107.9 kB / 1.365 GB, free: 11.51 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002436/0.3569, allocations: 171.5 kB / 1.365 GB, free: 11.32 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004428/0.3574, allocations: 297.7 kB / 1.366 GB, free: 11.01 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.3574, allocations: 0 / 1.366 GB, free: 11.01 MB / 1.061 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0008235/0.3582, allocations: 417.9 kB / 1.366 GB, free: 10.59 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 2.122e-05/0.3582, allocations: 8 kB / 1.366 GB, free: 10.58 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.571e-06/0.3582, allocations: 0 / 1.366 GB, free: 10.58 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004423/0.3587, allocations: 101 kB / 1.366 GB, free: 10.48 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002674/0.3589, allocations: 55.89 kB / 1.366 GB, free: 10.43 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002037/0.361, allocations: 1.768 MB / 1.368 GB, free: 8.543 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002264/0.3612, allocations: 23.94 kB / 1.368 GB, free: 8.52 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.354e-05/0.3612, allocations: 12 kB / 1.368 GB, free: 8.508 MB / 1.061 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.0001861/0.3614, allocations: 165.8 kB / 1.368 GB, free: 8.336 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.034e-05/0.3614, allocations: 15.91 kB / 1.368 GB, free: 8.32 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004885/0.3619, allocations: 291.3 kB / 1.368 GB, free: 8.031 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.549e-06/0.3619, allocations: 4 kB / 1.368 GB, free: 8.027 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.252e-06/0.3619, allocations: 0 / 1.368 GB, free: 8.027 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.35e-06/0.3619, allocations: 7.875 kB / 1.368 GB, free: 8.02 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009758/0.3629, allocations: 0.6725 MB / 1.369 GB, free: 7.293 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.668e-06/0.3629, allocations: 4 kB / 1.369 GB, free: 7.289 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003043/0.3632, allocations: 55.89 kB / 1.369 GB, free: 7.234 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.665e-06/0.3632, allocations: 7.938 kB / 1.369 GB, free: 7.227 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.77e-05/0.3633, allocations: 4 kB / 1.369 GB, free: 7.223 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.827e-06/0.3633, allocations: 4 kB / 1.369 GB, free: 7.219 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/0.3633, allocations: 0 / 1.369 GB, free: 7.219 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006479/0.3639, allocations: 0.5226 MB / 1.37 GB, free: 6.676 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001084/0.364, allocations: 39.86 kB / 1.37 GB, free: 6.637 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.418e-05/0.3641, allocations: 3.984 kB / 1.37 GB, free: 6.633 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001788/0.3642, allocations: 15.98 kB / 1.37 GB, free: 6.617 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.534e-05/0.3643, allocations: 7.984 kB / 1.37 GB, free: 6.609 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.462e-05/0.3643, allocations: 8 kB / 1.37 GB, free: 6.602 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0001441/0.3644, allocations: 152.1 kB / 1.37 GB, free: 6.449 MB / 1.061 GB Notification: Performance of sort global known variables: time 7e-08/0.3644, allocations: 0 / 1.37 GB, free: 6.449 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0003663/0.3648, allocations: 64 kB / 1.37 GB, free: 6.387 MB / 1.061 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.001014/0.3658, allocations: 1.063 MB / 1.371 GB, free: 5.289 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0007585/0.3666, allocations: 410.5 kB / 1.371 GB, free: 4.875 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.915e-06/0.3666, allocations: 0 / 1.371 GB, free: 4.875 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001696/0.3667, allocations: 115.1 kB / 1.371 GB, free: 4.766 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003834/0.3671, allocations: 54.78 kB / 1.372 GB, free: 4.715 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004133/0.3713, allocations: 2.893 MB / 1.374 GB, free: 1.688 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004427/0.3717, allocations: 0.7753 MB / 1.375 GB, free: 0.8867 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 0.0001664/0.3719, allocations: 57.89 kB / 1.375 GB, free: 0.832 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001264/0.372, allocations: 67.41 kB / 1.375 GB, free: 0.7656 MB / 1.061 GB Notification: Performance of SimCode: time 4.41e-07/0.372, allocations: 0 / 1.375 GB, free: 0.7656 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.124/2.496, allocations: 5.322 MB / 1.38 GB, free: 11.59 MB / 1.076 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.3/15.79, allocations: 10.12 kB / 1.38 GB, free: 11.58 MB / 1.076 GB " [Timeout remaining time 284] (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 --stepSize=0.0004 --timeout=800 --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) [Timeout 840.0] 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) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 22.376464491942897]