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.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.0007634/0.0007634, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 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.0007895/0.0007895, allocations: 169.9 kB / 22.46 MB, free: 2.105 MB / 18.57 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 0.8404/0.8404, allocations: 177.1 MB / 202.8 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 1.584/1.584, allocations: 359 MB / 0.6037 GB, free: 11.11 MB / 0.573 GB " [Timeout remaining time 178] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.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_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"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.433e-06/1.433e-06, allocations: 0 / 0.9505 GB, free: 3.531 MB / 0.9011 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.724e-05/1.867e-05, allocations: 2.281 kB / 0.9505 GB, free: 3.527 MB / 0.9011 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.003459/0.003478, allocations: 3.065 MB / 0.9535 GB, free: 452 kB / 0.9011 GB Notification: Performance of NFInst.instExpressions: time 0.001847/0.005325, allocations: 1.667 MB / 0.9551 GB, free: 14.77 MB / 0.9167 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.745e-05/0.005423, allocations: 7.938 kB / 0.9551 GB, free: 14.76 MB / 0.9167 GB Notification: Performance of NFTyping.typeComponents: time 0.0006628/0.006086, allocations: 338.6 kB / 0.9554 GB, free: 14.43 MB / 0.9167 GB Notification: Performance of NFTyping.typeBindings: time 0.0003258/0.006411, allocations: 218.8 kB / 0.9556 GB, free: 14.21 MB / 0.9167 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002891/0.006701, allocations: 189.3 kB / 0.9558 GB, free: 14.03 MB / 0.9167 GB Notification: Performance of NFFlatten.flatten: time 0.000307/0.007008, allocations: 326.8 kB / 0.9561 GB, free: 13.71 MB / 0.9167 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002509/0.007258, allocations: 173 kB / 0.9563 GB, free: 13.54 MB / 0.9167 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002068/0.007465, allocations: 191.5 kB / 0.9565 GB, free: 13.35 MB / 0.9167 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002078/0.007673, allocations: 147.6 kB / 0.9566 GB, free: 13.2 MB / 0.9167 GB Notification: Performance of NFPackage.collectConstants: time 2.776e-05/0.007701, allocations: 24 kB / 0.9566 GB, free: 13.18 MB / 0.9167 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002559/0.007957, allocations: 223.4 kB / 0.9569 GB, free: 12.96 MB / 0.9167 GB Notification: Performance of NFScalarize.scalarize: time 8.628e-05/0.008043, allocations: 111.7 kB / 0.957 GB, free: 12.85 MB / 0.9167 GB Notification: Performance of NFVerifyModel.verify: time 6.912e-05/0.008112, allocations: 83.81 kB / 0.957 GB, free: 12.77 MB / 0.9167 GB Notification: Performance of NFConvertDAE.convert: time 0.0003693/0.008481, allocations: 450.7 kB / 0.9575 GB, free: 12.33 MB / 0.9167 GB Notification: Performance of FrontEnd - DAE generated: time 2.335e-06/0.008484, allocations: 3.938 kB / 0.9575 GB, free: 12.32 MB / 0.9167 GB Notification: Performance of FrontEnd: time 1.072e-06/0.008485, allocations: 0 / 0.9575 GB, free: 12.32 MB / 0.9167 GB Notification: Performance of Transformations before backend: time 4.839e-06/0.00849, allocations: 0 / 0.9575 GB, free: 12.32 MB / 0.9167 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.0006844/0.009174, allocations: 481.4 kB / 0.9579 GB, free: 11.82 MB / 0.9167 GB Notification: Performance of prepare preOptimizeDAE: time 3.69e-05/0.009211, allocations: 12.03 kB / 0.958 GB, free: 11.81 MB / 0.9167 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.785e-05/0.009259, allocations: 58.72 kB / 0.958 GB, free: 11.75 MB / 0.9167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003972/0.009656, allocations: 96.64 kB / 0.9581 GB, free: 11.65 MB / 0.9167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002793/0.009935, allocations: 203.1 kB / 0.9583 GB, free: 11.43 MB / 0.9167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.458e-05/0.00995, allocations: 12.88 kB / 0.9583 GB, free: 11.42 MB / 0.9167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.077e-05/0.01003, allocations: 32.53 kB / 0.9583 GB, free: 11.39 MB / 0.9167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004272/0.01046, allocations: 425 kB / 0.9587 GB, free: 10.93 MB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.309e-05/0.01047, allocations: 4.125 kB / 0.9587 GB, free: 10.93 MB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.216e-05/0.01049, allocations: 11.94 kB / 0.9588 GB, free: 10.92 MB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.146e-05/0.01057, allocations: 32.47 kB / 0.9588 GB, free: 10.89 MB / 0.9167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003395/0.01091, allocations: 305.8 kB / 0.9591 GB, free: 10.59 MB / 0.9167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001023/0.01194, allocations: 1.085 MB / 0.9601 GB, free: 9.441 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002651/0.0122, allocations: 204.8 kB / 0.9603 GB, free: 9.234 MB / 0.9167 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001005/0.0123, allocations: 108.8 kB / 0.9604 GB, free: 9.125 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 7.753e-05/0.01238, allocations: 15.92 kB / 0.9605 GB, free: 9.109 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.143e-05/0.0124, allocations: 38.55 kB / 0.9605 GB, free: 9.062 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=18): time 1.203e-06/0.0124, allocations: 0 / 0.9605 GB, free: 9.062 MB / 0.9167 GB Notification: Performance of matching and sorting (n=19): time 0.0008484/0.01325, allocations: 0.7272 MB / 0.9612 GB, free: 8.301 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.642e-05/0.01328, allocations: 55.41 kB / 0.9613 GB, free: 8.234 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001281/0.01341, allocations: 184.9 kB / 0.9614 GB, free: 8.047 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 1.735e-05/0.01342, allocations: 33.7 kB / 0.9615 GB, free: 8.008 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 7.085e-05/0.01349, allocations: 168.1 kB / 0.9616 GB, free: 7.84 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 3.456e-05/0.01353, allocations: 71.36 kB / 0.9617 GB, free: 7.77 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.187e-05/0.01359, allocations: 53.66 kB / 0.9617 GB, free: 7.711 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 8.582e-05/0.01368, allocations: 330.8 kB / 0.9621 GB, free: 7.379 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001118/0.01379, allocations: 115.9 kB / 0.9622 GB, free: 7.266 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001326/0.01392, allocations: 170.2 kB / 0.9623 GB, free: 7.078 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002566/0.01418, allocations: 299.6 kB / 0.9626 GB, free: 6.766 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.01418, allocations: 7.938 kB / 0.9626 GB, free: 6.758 MB / 0.9167 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005087/0.01469, allocations: 408 kB / 0.963 GB, free: 6.352 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 1.817e-05/0.01471, allocations: 10.34 kB / 0.963 GB, free: 6.344 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.162e-06/0.01471, allocations: 3.938 kB / 0.963 GB, free: 6.34 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002586/0.01497, allocations: 104.7 kB / 0.9631 GB, free: 6.234 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001418/0.01511, allocations: 44.09 kB / 0.9632 GB, free: 6.191 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001266/0.01638, allocations: 1.756 MB / 0.9649 GB, free: 4.32 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001017/0.01648, allocations: 16.2 kB / 0.9649 GB, free: 4.305 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.464e-05/0.0165, allocations: 12 kB / 0.9649 GB, free: 4.293 MB / 0.9167 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.0001197/0.01662, allocations: 165.8 kB / 0.9651 GB, free: 4.121 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.669e-05/0.01664, allocations: 19.84 kB / 0.9651 GB, free: 4.102 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003094/0.01695, allocations: 301.3 kB / 0.9654 GB, free: 3.801 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.468e-06/0.01696, allocations: 4 kB / 0.9654 GB, free: 3.797 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.412e-06/0.01696, allocations: 0 / 0.9654 GB, free: 3.797 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.608e-06/0.01696, allocations: 3.984 kB / 0.9654 GB, free: 3.793 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000569/0.01753, allocations: 0.6629 MB / 0.966 GB, free: 3.07 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.01753, allocations: 0 / 0.966 GB, free: 3.07 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001637/0.0177, allocations: 55.89 kB / 0.9661 GB, free: 3.016 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.106e-06/0.0177, allocations: 4 kB / 0.9661 GB, free: 3.012 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.148e-05/0.01771, allocations: 4 kB / 0.9661 GB, free: 3.008 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.704e-06/0.01771, allocations: 4 kB / 0.9661 GB, free: 3.004 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.903e-06/0.01772, allocations: 3.938 kB / 0.9661 GB, free: 3 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000402/0.01812, allocations: 0.5027 MB / 0.9666 GB, free: 2.477 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 5.449e-05/0.01817, allocations: 43.86 kB / 0.9666 GB, free: 2.434 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.971e-05/0.01819, allocations: 8 kB / 0.9666 GB, free: 2.426 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.866e-05/0.01828, allocations: 20.05 kB / 0.9667 GB, free: 2.406 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.551e-05/0.01831, allocations: 19.91 kB / 0.9667 GB, free: 2.387 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.245e-06/0.01831, allocations: 4 kB / 0.9667 GB, free: 2.383 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 8.489e-05/0.0184, allocations: 148.1 kB / 0.9668 GB, free: 2.234 MB / 0.9167 GB Notification: Performance of sort global known variables: time 6e-08/0.0184, allocations: 0 / 0.9668 GB, free: 2.234 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.0002313/0.01863, allocations: 60 kB / 0.9669 GB, free: 2.176 MB / 0.9167 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.0006247/0.01925, allocations: 1.064 MB / 0.9679 GB, free: 1.078 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.0004768/0.01973, allocations: 406.5 kB / 0.9683 GB, free: 0.668 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 2.023e-06/0.01973, allocations: 0 / 0.9683 GB, free: 0.668 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 9.931e-05/0.01983, allocations: 118.5 kB / 0.9684 GB, free: 0.5547 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002577/0.02009, allocations: 35.95 kB / 0.9685 GB, free: 0.5195 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002302/0.02239, allocations: 2.845 MB / 0.9712 GB, free: 13.55 MB / 0.9323 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001133/0.02251, allocations: 165.4 kB / 0.9714 GB, free: 13.36 MB / 0.9323 GB Notification: Performance of simCode: alias equations: time 9.953e-05/0.02261, allocations: 61.84 kB / 0.9714 GB, free: 13.3 MB / 0.9323 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.209e-05/0.02269, allocations: 68.42 kB / 0.9715 GB, free: 13.24 MB / 0.9323 GB Notification: Performance of SimCode: time 4.7e-07/0.02269, allocations: 3.938 kB / 0.9715 GB, free: 13.23 MB / 0.9323 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0187/0.04138, allocations: 5.851 MB / 0.9772 GB, free: 7.559 MB / 0.9323 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.662/6.703, allocations: 10.12 kB / 0.9772 GB, free: 7.551 MB / 0.9323 GB " [Timeout remaining time 293] (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 --stepSize=0.0004 --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) [Timeout 420.0] 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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: 10.392147698439658]