Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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: translateModel(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.I|sen.V|loa.S.1.|loa.S.2.",fileNamePrefix="Buildings_10_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor") translateModel(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.I|sen.V|loa.S.1.|loa.S.2.",fileNamePrefix="Buildings_10_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001375/0.001375, allocations: 102.2 kB / 16.27 MB, free: 6 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.001296/0.001296, allocations: 191 kB / 17.2 MB, free: 5.609 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.408/1.408, allocations: 222.9 MB / 240.9 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.621/2.621, allocations: 437.1 MB / 0.7111 GB, free: 4.48 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001999/0.001999, allocations: 64.44 kB / 0.8699 GB, free: 2.176 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3619/0.3639, allocations: 151.6 MB / 1.018 GB, free: 10.62 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.005385/0.3694, allocations: 3.093 MB / 1.021 GB, free: 7.52 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.003126/0.3725, allocations: 1.726 MB / 1.023 GB, free: 5.785 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001298/0.3727, allocations: 4 kB / 1.023 GB, free: 5.781 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.001128/0.3739, allocations: 338.7 kB / 1.023 GB, free: 5.449 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.0005396/0.3744, allocations: 215 kB / 1.023 GB, free: 5.238 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005264/0.3749, allocations: 180 kB / 1.023 GB, free: 5.062 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0004173/0.3754, allocations: 319 kB / 1.024 GB, free: 4.75 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004553/0.3758, allocations: 237 kB / 1.024 GB, free: 4.52 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002236/0.3761, allocations: 143.5 kB / 1.024 GB, free: 4.379 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003384/0.3764, allocations: 155.5 kB / 1.024 GB, free: 4.227 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 4.158e-05/0.3765, allocations: 20 kB / 1.024 GB, free: 4.207 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004641/0.3769, allocations: 243.5 kB / 1.024 GB, free: 3.969 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0001712/0.3771, allocations: 107.8 kB / 1.025 GB, free: 3.863 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0001752/0.3773, allocations: 119.4 kB / 1.025 GB, free: 3.746 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0007587/0.3781, allocations: 422.7 kB / 1.025 GB, free: 3.332 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 9.478e-06/0.3781, allocations: 0 / 1.025 GB, free: 3.332 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.954e-06/0.3781, allocations: 0 / 1.025 GB, free: 3.332 MB / 0.795 GB Notification: Performance of Transformations before backend: time 8.566e-06/0.3781, allocations: 0 / 1.025 GB, free: 3.332 MB / 0.795 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.001353/0.3795, allocations: 0.5441 MB / 1.026 GB, free: 2.738 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 6.391e-05/0.3796, allocations: 8.031 kB / 1.026 GB, free: 2.73 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000932/0.3805, allocations: 92.55 kB / 1.026 GB, free: 2.641 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004434/0.3809, allocations: 259.9 kB / 1.026 GB, free: 2.348 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.436e-05/0.381, allocations: 12.81 kB / 1.026 GB, free: 2.336 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001317/0.3811, allocations: 28.55 kB / 1.026 GB, free: 2.309 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007754/0.3819, allocations: 369.2 kB / 1.026 GB, free: 1.926 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.134e-05/0.3819, allocations: 3.938 kB / 1.026 GB, free: 1.922 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.47e-05/0.382, allocations: 15.98 kB / 1.026 GB, free: 1.906 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001163/0.3821, allocations: 28.42 kB / 1.026 GB, free: 1.879 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005778/0.3827, allocations: 305.5 kB / 1.027 GB, free: 1.578 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002191/0.3849, allocations: 1.529 MB / 1.028 GB, free: 15.89 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005003/0.3854, allocations: 234.3 kB / 1.028 GB, free: 15.66 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001797/0.3856, allocations: 113.1 kB / 1.029 GB, free: 15.54 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001812/0.3858, allocations: 89.11 kB / 1.029 GB, free: 15.44 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.751e-05/0.3859, allocations: 38.47 kB / 1.029 GB, free: 15.39 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=18): time 2.525e-06/0.3859, allocations: 0 / 1.029 GB, free: 15.39 MB / 0.8106 GB Notification: Performance of matching and sorting (n=19): time 0.001436/0.3873, allocations: 0.7943 MB / 1.029 GB, free: 14.55 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.313e-05/0.3874, allocations: 51.41 kB / 1.029 GB, free: 14.48 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002212/0.3876, allocations: 195.5 kB / 1.03 GB, free: 14.29 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.464e-05/0.3876, allocations: 25.7 kB / 1.03 GB, free: 14.25 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001242/0.3878, allocations: 167.8 kB / 1.03 GB, free: 14.09 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 7.399e-05/0.3878, allocations: 78.84 kB / 1.03 GB, free: 14.01 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001078/0.3879, allocations: 53.7 kB / 1.03 GB, free: 13.95 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001969/0.3882, allocations: 334.8 kB / 1.03 GB, free: 13.62 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001865/0.3883, allocations: 111.9 kB / 1.03 GB, free: 13.51 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002319/0.3886, allocations: 171.5 kB / 1.031 GB, free: 13.32 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004196/0.389, allocations: 284.5 kB / 1.031 GB, free: 13.02 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.303e-06/0.389, allocations: 4 kB / 1.031 GB, free: 13.02 MB / 0.8106 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0008215/0.3898, allocations: 420 kB / 1.031 GB, free: 12.6 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.961e-05/0.3899, allocations: 4 kB / 1.031 GB, free: 12.6 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.078e-05/0.3899, allocations: 3.984 kB / 1.031 GB, free: 12.59 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004575/0.3904, allocations: 116.9 kB / 1.031 GB, free: 12.48 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002712/0.3906, allocations: 47.91 kB / 1.031 GB, free: 12.43 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002225/0.3929, allocations: 1.879 MB / 1.033 GB, free: 10.41 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002363/0.3931, allocations: 15.92 kB / 1.033 GB, free: 10.39 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.404e-05/0.3932, allocations: 15.98 kB / 1.033 GB, free: 10.38 MB / 0.8106 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.0001807/0.3933, allocations: 153.8 kB / 1.033 GB, free: 10.22 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.434e-05/0.3934, allocations: 15.81 kB / 1.033 GB, free: 10.2 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005571/0.394, allocations: 313.2 kB / 1.034 GB, free: 9.898 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.909e-06/0.394, allocations: 4 kB / 1.034 GB, free: 9.895 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.396e-06/0.394, allocations: 4 kB / 1.034 GB, free: 9.891 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.073e-06/0.394, allocations: 7.922 kB / 1.034 GB, free: 9.883 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000983/0.395, allocations: 0.7029 MB / 1.034 GB, free: 9.117 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.715e-06/0.395, allocations: 0 / 1.034 GB, free: 9.117 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003137/0.3953, allocations: 55.89 kB / 1.034 GB, free: 9.062 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.34e-06/0.3953, allocations: 4.062 kB / 1.034 GB, free: 9.059 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.15e-05/0.3954, allocations: 11.94 kB / 1.034 GB, free: 9.047 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.818e-06/0.3954, allocations: 4 kB / 1.034 GB, free: 9.043 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.213e-06/0.3954, allocations: 0 / 1.034 GB, free: 9.043 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006656/0.3961, allocations: 0.5062 MB / 1.035 GB, free: 8.516 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001214/0.3962, allocations: 120.9 kB / 1.035 GB, free: 8.379 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.396e-05/0.3962, allocations: 4 kB / 1.035 GB, free: 8.375 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001878/0.3964, allocations: 23.97 kB / 1.035 GB, free: 8.352 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.369e-05/0.3965, allocations: 7.984 kB / 1.035 GB, free: 8.344 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.13e-05/0.3965, allocations: 12 kB / 1.035 GB, free: 8.332 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0001434/0.3966, allocations: 144.6 kB / 1.035 GB, free: 8.188 MB / 0.8106 GB Notification: Performance of sort global known variables: time 4.11e-07/0.3967, allocations: 0 / 1.035 GB, free: 8.188 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0003837/0.397, allocations: 68 kB / 1.035 GB, free: 8.121 MB / 0.8106 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.0001705/0.3972, allocations: 103.8 kB / 1.035 GB, free: 8.012 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0008511/0.3981, allocations: 454.2 kB / 1.036 GB, free: 7.555 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.836e-06/0.3981, allocations: 0 / 1.036 GB, free: 7.555 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001789/0.3983, allocations: 119.9 kB / 1.036 GB, free: 7.438 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004225/0.3987, allocations: 45.09 kB / 1.036 GB, free: 7.395 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001348/0.4001, allocations: 0.6679 MB / 1.037 GB, free: 6.68 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004161/0.4005, allocations: 0.7714 MB / 1.037 GB, free: 5.883 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.701e-05/0.4006, allocations: 27.42 kB / 1.037 GB, free: 5.855 MB / 0.8106 GB Notification: Performance of SimCode: time 2.2e-07/0.4006, allocations: 0 / 1.037 GB, free: 5.855 MB / 0.8106 GB Notification: Performance of Templates: time 0.006549/0.4071, allocations: 3.589 MB / 1.041 GB, free: 2.273 MB / 0.8106 GB make -j1 -f Buildings_10_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.makefile (rm -f Buildings_10_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.sim & ./Buildings_10_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches