Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001371/0.001371, allocations: 113.3 kB / 18.94 MB, free: 2.934 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.001496/0.001496, allocations: 212.8 kB / 22.25 MB, free: 5.082 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.425/1.425, allocations: 230.6 MB / 256 MB, free: 8.008 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.139/3.139, allocations: 0.49 GB / 0.7951 GB, free: 33.45 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/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_12_Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor,fileNamePrefix="Buildings_12_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.001982/0.001982, allocations: 67.61 kB / 1.154 GB, free: 25.78 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.329/0.331, allocations: 176.1 MB / 1.326 GB, free: 1.957 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.005369/0.3364, allocations: 3.213 MB / 1.329 GB, free: 14.73 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.003003/0.3394, allocations: 1.827 MB / 1.331 GB, free: 12.9 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000125/0.3395, allocations: 7.938 kB / 1.331 GB, free: 12.89 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.001057/0.3406, allocations: 342.7 kB / 1.331 GB, free: 12.55 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0005011/0.3411, allocations: 215.1 kB / 1.331 GB, free: 12.34 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004692/0.3415, allocations: 182 kB / 1.332 GB, free: 12.17 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0004158/0.342, allocations: 319 kB / 1.332 GB, free: 11.86 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003337/0.3423, allocations: 173.5 kB / 1.332 GB, free: 11.68 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002484/0.3425, allocations: 147.5 kB / 1.332 GB, free: 11.54 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003194/0.3429, allocations: 171.4 kB / 1.332 GB, free: 11.37 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 3.52e-05/0.3429, allocations: 24 kB / 1.332 GB, free: 11.34 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004203/0.3433, allocations: 255.5 kB / 1.333 GB, free: 11.09 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0001191/0.3434, allocations: 99.72 kB / 1.333 GB, free: 11 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.000138/0.3436, allocations: 119.5 kB / 1.333 GB, free: 10.88 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0005403/0.3441, allocations: 422.5 kB / 1.333 GB, free: 10.46 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.3441, allocations: 3.938 kB / 1.333 GB, free: 10.46 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.553e-06/0.3441, allocations: 0 / 1.333 GB, free: 10.46 MB / 1.029 GB Notification: Performance of Transformations before backend: time 6.302e-06/0.3441, allocations: 0 / 1.333 GB, free: 10.46 MB / 1.029 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.0009466/0.3451, allocations: 493.4 kB / 1.334 GB, free: 9.949 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.777e-05/0.3451, allocations: 8.031 kB / 1.334 GB, free: 9.941 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.65e-05/0.3452, allocations: 62.72 kB / 1.334 GB, free: 9.871 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007296/0.3459, allocations: 92.69 kB / 1.334 GB, free: 9.781 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003374/0.3462, allocations: 203.2 kB / 1.334 GB, free: 9.559 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.278e-05/0.3463, allocations: 16.8 kB / 1.334 GB, free: 9.543 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001009/0.3464, allocations: 28.52 kB / 1.334 GB, free: 9.516 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005732/0.3469, allocations: 380.5 kB / 1.334 GB, free: 9.117 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.364e-05/0.347, allocations: 0 / 1.334 GB, free: 9.117 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.929e-05/0.347, allocations: 8 kB / 1.334 GB, free: 9.109 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.726e-05/0.3471, allocations: 32.41 kB / 1.334 GB, free: 9.078 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004863/0.3476, allocations: 305.5 kB / 1.335 GB, free: 8.781 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001919/0.3495, allocations: 1.499 MB / 1.336 GB, free: 7.133 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004417/0.3499, allocations: 220.2 kB / 1.336 GB, free: 6.91 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001565/0.3501, allocations: 104.8 kB / 1.337 GB, free: 6.805 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001104/0.3502, allocations: 11.98 kB / 1.337 GB, free: 6.793 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.896e-05/0.3502, allocations: 30.56 kB / 1.337 GB, free: 6.754 MB / 1.029 GB Notification: Performance of pre-optimization done (n=18): time 1.292e-06/0.3502, allocations: 0 / 1.337 GB, free: 6.754 MB / 1.029 GB Notification: Performance of matching and sorting (n=19): time 0.001288/0.3515, allocations: 0.7228 MB / 1.337 GB, free: 6 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.735e-05/0.3516, allocations: 55.39 kB / 1.337 GB, free: 5.934 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002014/0.3518, allocations: 198.7 kB / 1.338 GB, free: 5.73 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.637e-05/0.3518, allocations: 29.7 kB / 1.338 GB, free: 5.695 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001228/0.3519, allocations: 164.1 kB / 1.338 GB, free: 5.531 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 6.424e-05/0.352, allocations: 75.41 kB / 1.338 GB, free: 5.457 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.73e-05/0.3521, allocations: 57.64 kB / 1.338 GB, free: 5.395 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001592/0.3522, allocations: 330.8 kB / 1.338 GB, free: 5.062 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001775/0.3524, allocations: 119.9 kB / 1.338 GB, free: 4.945 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002185/0.3526, allocations: 161.9 kB / 1.338 GB, free: 4.766 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004092/0.353, allocations: 300 kB / 1.339 GB, free: 4.453 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.353, allocations: 4 kB / 1.339 GB, free: 4.449 MB / 1.029 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0008008/0.3538, allocations: 412.5 kB / 1.339 GB, free: 4.039 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.754e-05/0.3539, allocations: 12.03 kB / 1.339 GB, free: 4.027 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.971e-06/0.3539, allocations: 0 / 1.339 GB, free: 4.027 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004294/0.3543, allocations: 96.77 kB / 1.339 GB, free: 3.93 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002592/0.3546, allocations: 51.89 kB / 1.339 GB, free: 3.879 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002073/0.3566, allocations: 1.776 MB / 1.341 GB, free: 1.988 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002338/0.3569, allocations: 23.91 kB / 1.341 GB, free: 1.965 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.923e-05/0.3569, allocations: 7.938 kB / 1.341 GB, free: 1.957 MB / 1.029 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.0001793/0.3571, allocations: 155.4 kB / 1.341 GB, free: 1.797 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.302e-05/0.3571, allocations: 23.8 kB / 1.341 GB, free: 1.773 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005203/0.3576, allocations: 295.4 kB / 1.341 GB, free: 1.477 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.037e-06/0.3576, allocations: 4 kB / 1.341 GB, free: 1.473 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.232e-06/0.3576, allocations: 0 / 1.341 GB, free: 1.473 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.22e-06/0.3576, allocations: 3.938 kB / 1.341 GB, free: 1.469 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009773/0.3586, allocations: 0.667 MB / 1.342 GB, free: 0.7461 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.345e-06/0.3586, allocations: 64 / 1.342 GB, free: 0.7461 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003105/0.3589, allocations: 67.83 kB / 1.342 GB, free: 0.6797 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.103e-06/0.3589, allocations: 11.92 kB / 1.342 GB, free: 0.668 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.818e-05/0.359, allocations: 4.125 kB / 1.342 GB, free: 0.6641 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.238e-06/0.359, allocations: 4 kB / 1.342 GB, free: 0.6602 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/0.359, allocations: 0 / 1.342 GB, free: 0.6602 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006555/0.3596, allocations: 0.5232 MB / 1.343 GB, free: 120 kB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00011/0.3597, allocations: 43.81 kB / 1.343 GB, free: 76 kB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.739e-05/0.3598, allocations: 11.98 kB / 1.343 GB, free: 64 kB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001762/0.3599, allocations: 7.984 kB / 1.343 GB, free: 56 kB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.146e-05/0.36, allocations: 11.98 kB / 1.343 GB, free: 44 kB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.407e-05/0.36, allocations: 4 kB / 1.343 GB, free: 40 kB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001689/0.3602, allocations: 148.1 kB / 1.343 GB, free: 15.89 MB / 1.045 GB Notification: Performance of sort global known variables: time 1e-07/0.3602, allocations: 0 / 1.343 GB, free: 15.89 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0003695/0.3605, allocations: 68 kB / 1.343 GB, free: 15.82 MB / 1.045 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.001012/0.3615, allocations: 1.063 MB / 1.344 GB, free: 14.72 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.000746/0.3623, allocations: 410.6 kB / 1.344 GB, free: 14.31 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.3623, allocations: 3.938 kB / 1.344 GB, free: 14.3 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0001688/0.3625, allocations: 107.9 kB / 1.345 GB, free: 14.2 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003986/0.3629, allocations: 35.39 kB / 1.345 GB, free: 14.17 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003972/0.3668, allocations: 2.887 MB / 1.347 GB, free: 11.15 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004281/0.3673, allocations: 0.7792 MB / 1.348 GB, free: 10.35 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 0.0001765/0.3674, allocations: 65.88 kB / 1.348 GB, free: 10.29 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001223/0.3676, allocations: 63.41 kB / 1.348 GB, free: 10.22 MB / 1.045 GB Notification: Performance of SimCode: time 6.01e-07/0.3676, allocations: 4 kB / 1.348 GB, free: 10.22 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03482/0.4024, allocations: 5.321 MB / 1.353 GB, free: 5.047 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.05/11.45, allocations: 6.172 kB / 1.353 GB, free: 5.043 MB / 1.045 GB " [Timeout remaining time 288] (rm -f Buildings_12_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_12_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_12_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_12_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.sim & python3 -m fmpy simulate --output-file Buildings_12_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor_res.csv --start-time 0 --stop-time 1 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_12_Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor.fmu > Buildings_12_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "Error: Could not read variable sen.I in file Buildings_12_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor_res.csv. Warning: Get data of variable sen.I from file Buildings_12_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor_res.csv failed! Error: Could not read variable sen.V in file Buildings_12_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor_res.csv. Warning: Get data of variable sen.V from file Buildings_12_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor_res.csv failed! Error: Could not read variable loa.S[1] in file Buildings_12_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor_res.csv. Warning: Get data of variable loa.S[1] from file Buildings_12_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor_res.csv failed! Error: Could not read variable loa.S[2] in file Buildings_12_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor_res.csv. Warning: Get data of variable loa.S[2] from file Buildings_12_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.019004736999705]