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.0009257/0.0009257, allocations: 80.94 kB / 19.94 MB, free: 4.543 MB / 18.57 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.0009197/0.0009197, allocations: 177 kB / 23.36 MB, free: 1.129 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.9627/0.9627, allocations: 177.1 MB / 203.8 MB, free: 5.477 MB / 186.7 MB " [Timeout remaining time 179] 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 2.372/2.372, allocations: 438.8 MB / 0.6827 GB, free: 13.58 MB / 0.6511 GB " [Timeout remaining time 177] Using package Buildings with version 14.1.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: translateModel(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|sen.I|sen.V|loa.S.[0-9,]+.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor") translateModel(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|sen.I|sen.V|loa.S.[0-9,]+.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.593e-06/1.593e-06, allocations: 0 / 0.8386 GB, free: 14.19 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.364e-05/1.523e-05, allocations: 2.312 kB / 0.8386 GB, free: 14.19 MB / 0.8073 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.002998/0.003013, allocations: 2.56 MB / 0.8411 GB, free: 11.61 MB / 0.8073 GB Notification: Performance of NFInst.instExpressions: time 0.001652/0.004664, allocations: 1.262 MB / 0.8423 GB, free: 10.34 MB / 0.8073 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.877e-05/0.004763, allocations: 4 kB / 0.8423 GB, free: 10.34 MB / 0.8073 GB Notification: Performance of NFTyping.typeComponents: time 0.0003677/0.005131, allocations: 95.45 kB / 0.8424 GB, free: 10.25 MB / 0.8073 GB Notification: Performance of NFTyping.typeBindings: time 0.0003196/0.00545, allocations: 179 kB / 0.8426 GB, free: 10.07 MB / 0.8073 GB Notification: Performance of NFTyping.typeClassSections: time 0.000286/0.005736, allocations: 163.5 kB / 0.8428 GB, free: 9.91 MB / 0.8073 GB Notification: Performance of NFFlatten.flatten: time 0.0002769/0.006013, allocations: 330.8 kB / 0.8431 GB, free: 9.586 MB / 0.8073 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002315/0.006245, allocations: 190.2 kB / 0.8433 GB, free: 9.398 MB / 0.8073 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002225/0.006467, allocations: 187.6 kB / 0.8434 GB, free: 9.215 MB / 0.8073 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002216/0.006689, allocations: 151.6 kB / 0.8436 GB, free: 9.066 MB / 0.8073 GB Notification: Performance of NFPackage.collectConstants: time 2.652e-05/0.006715, allocations: 20 kB / 0.8436 GB, free: 9.047 MB / 0.8073 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002158/0.006931, allocations: 163.7 kB / 0.8438 GB, free: 8.887 MB / 0.8073 GB Notification: Performance of NFScalarize.scalarize: time 8.967e-05/0.007021, allocations: 115.7 kB / 0.8439 GB, free: 8.773 MB / 0.8073 GB Notification: Performance of NFVerifyModel.verify: time 6.601e-05/0.007087, allocations: 87.77 kB / 0.844 GB, free: 8.688 MB / 0.8073 GB Notification: Performance of NFConvertDAE.convert: time 0.0002997/0.007387, allocations: 295 kB / 0.8442 GB, free: 8.398 MB / 0.8073 GB Notification: Performance of FrontEnd - DAE generated: time 1.773e-06/0.007388, allocations: 0 / 0.8442 GB, free: 8.398 MB / 0.8073 GB Notification: Performance of FrontEnd: time 6.61e-07/0.007389, allocations: 0 / 0.8442 GB, free: 8.398 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 4.628e-06/0.007394, allocations: 0 / 0.8442 GB, free: 8.398 MB / 0.8073 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.0005163/0.00791, allocations: 447.7 kB / 0.8447 GB, free: 7.938 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.016e-05/0.00794, allocations: 8.031 kB / 0.8447 GB, free: 7.93 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004743/0.008414, allocations: 124.6 kB / 0.8448 GB, free: 7.809 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001945/0.008609, allocations: 185.5 kB / 0.845 GB, free: 7.602 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.575e-05/0.008655, allocations: 12.88 kB / 0.845 GB, free: 7.59 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.296e-05/0.008718, allocations: 32.48 kB / 0.845 GB, free: 7.559 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002573/0.008975, allocations: 275.8 kB / 0.8453 GB, free: 7.254 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.072e-05/0.008986, allocations: 192 / 0.8453 GB, free: 7.254 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.975e-05/0.009005, allocations: 12.12 kB / 0.8453 GB, free: 7.242 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.557e-05/0.009061, allocations: 32.47 kB / 0.8453 GB, free: 7.211 MB / 0.8073 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000131/0.009192, allocations: 99.31 kB / 0.8454 GB, free: 7.109 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008111/0.01, allocations: 0.834 MB / 0.8462 GB, free: 6.246 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000187/0.01019, allocations: 152 kB / 0.8464 GB, free: 6.086 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.476e-05/0.01023, allocations: 40.83 kB / 0.8464 GB, free: 6.043 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 5.868e-05/0.01029, allocations: 12 kB / 0.8464 GB, free: 6.031 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.034e-05/0.01031, allocations: 38.56 kB / 0.8465 GB, free: 5.984 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=18): time 1.393e-06/0.01032, allocations: 0 / 0.8465 GB, free: 5.984 MB / 0.8073 GB Notification: Performance of matching and sorting (n=19): time 0.0005184/0.01083, allocations: 361.6 kB / 0.8468 GB, free: 5.602 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.189e-05/0.01086, allocations: 55.41 kB / 0.8469 GB, free: 5.535 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.595e-05/0.01095, allocations: 178.5 kB / 0.847 GB, free: 5.348 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 1.303e-05/0.01096, allocations: 25.7 kB / 0.847 GB, free: 5.316 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 6.201e-05/0.01103, allocations: 160.5 kB / 0.8472 GB, free: 5.156 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 4.328e-05/0.01107, allocations: 71.41 kB / 0.8473 GB, free: 5.086 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.354e-05/0.01113, allocations: 61.62 kB / 0.8473 GB, free: 5.02 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 0.0001972/0.01133, allocations: 326.8 kB / 0.8476 GB, free: 4.691 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.082e-05/0.01137, allocations: 27.98 kB / 0.8477 GB, free: 4.664 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.684e-05/0.01144, allocations: 89.88 kB / 0.8478 GB, free: 4.555 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001291/0.01157, allocations: 136.2 kB / 0.8479 GB, free: 4.402 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.036e-06/0.01157, allocations: 8 kB / 0.8479 GB, free: 4.395 MB / 0.8073 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0002861/0.01186, allocations: 204.9 kB / 0.8481 GB, free: 4.184 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.25e-05/0.01187, allocations: 11.94 kB / 0.8481 GB, free: 4.172 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.3e-06/0.01187, allocations: 7.922 kB / 0.8481 GB, free: 4.164 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003286/0.0122, allocations: 99.77 kB / 0.8482 GB, free: 4.062 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001235/0.01233, allocations: 43.97 kB / 0.8482 GB, free: 4.02 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008658/0.01319, allocations: 1.348 MB / 0.8496 GB, free: 2.574 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.162e-05/0.01328, allocations: 12.17 kB / 0.8496 GB, free: 2.562 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.177e-05/0.0133, allocations: 4 kB / 0.8496 GB, free: 2.559 MB / 0.8073 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 7.99e-05/0.01338, allocations: 128.7 kB / 0.8497 GB, free: 2.422 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.128e-05/0.01341, allocations: 19.98 kB / 0.8497 GB, free: 2.402 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001704/0.01358, allocations: 143.2 kB / 0.8499 GB, free: 2.254 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.275e-06/0.01358, allocations: 4 kB / 0.8499 GB, free: 2.25 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.82e-07/0.01358, allocations: 0 / 0.8499 GB, free: 2.25 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.116e-06/0.01358, allocations: 0 / 0.8499 GB, free: 2.25 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003558/0.01394, allocations: 408.2 kB / 0.8502 GB, free: 1.82 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.01394, allocations: 4 kB / 0.8502 GB, free: 1.816 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002721/0.01421, allocations: 63.88 kB / 0.8503 GB, free: 1.754 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.599e-06/0.01422, allocations: 7.938 kB / 0.8503 GB, free: 1.746 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.3e-05/0.01423, allocations: 4 kB / 0.8503 GB, free: 1.742 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.833e-06/0.01423, allocations: 0 / 0.8503 GB, free: 1.742 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/0.01423, allocations: 4 kB / 0.8503 GB, free: 1.738 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002412/0.01447, allocations: 305 kB / 0.8506 GB, free: 1.418 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 4.768e-05/0.01452, allocations: 39.92 kB / 0.8507 GB, free: 1.379 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.954e-05/0.01454, allocations: 4 kB / 0.8507 GB, free: 1.375 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.807e-05/0.01462, allocations: 7.984 kB / 0.8507 GB, free: 1.367 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.44e-05/0.01464, allocations: 11.97 kB / 0.8507 GB, free: 1.355 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.13e-05/0.01466, allocations: 8 kB / 0.8507 GB, free: 1.348 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 3.985e-05/0.0147, allocations: 43.31 kB / 0.8507 GB, free: 1.305 MB / 0.8073 GB Notification: Performance of sort global known variables: time 6e-08/0.0147, allocations: 0 / 0.8507 GB, free: 1.305 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0002064/0.0149, allocations: 68 kB / 0.8508 GB, free: 1.238 MB / 0.8073 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.0001013/0.015, allocations: 92.34 kB / 0.8509 GB, free: 1.141 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0003187/0.01532, allocations: 279 kB / 0.8511 GB, free: 0.8516 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 5.07e-06/0.01533, allocations: 4 kB / 0.8511 GB, free: 0.8477 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 5.382e-05/0.01538, allocations: 57.95 kB / 0.8512 GB, free: 0.793 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002076/0.01559, allocations: 37.3 kB / 0.8512 GB, free: 0.7617 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000892/0.01648, allocations: 0.5237 MB / 0.8518 GB, free: 208 kB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.715e-05/0.01654, allocations: 100.3 kB / 0.8518 GB, free: 88 kB / 0.8073 GB Notification: Performance of simCode: alias equations: time 7.066e-05/0.01661, allocations: 29.92 kB / 0.8519 GB, free: 56 kB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001147/0.01672, allocations: 79.36 kB / 0.852 GB, free: 15.98 MB / 0.823 GB Notification: Performance of SimCode: time 6.61e-07/0.01672, allocations: 0 / 0.852 GB, free: 15.98 MB / 0.823 GB Notification: Performance of Templates: time 0.004373/0.0211, allocations: 2.964 MB / 0.8548 GB, free: 13.04 MB / 0.823 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.makefile [Timeout 300] (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 & ./Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.226343568880111]