Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor") translateModel(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_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.001284/0.001284, allocations: 105.3 kB / 16.36 MB, free: 6.309 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.001058/0.001058, allocations: 192.1 kB / 17.29 MB, free: 5.875 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.374/1.374, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.934/1.934, allocations: 292.3 MB / 0.5496 GB, free: 17.49 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001391/0.001391, allocations: 67.03 kB / 0.6729 GB, free: 5.824 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2131/0.2145, allocations: 114.6 MB / 0.7848 GB, free: 3.152 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.004523/0.2191, allocations: 3.075 MB / 0.7878 GB, free: 64 kB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.3803/0.5994, allocations: 1.72 MB / 0.7895 GB, free: 46.75 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001299/0.5996, allocations: 5.25 kB / 0.7895 GB, free: 46.75 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.0009255/0.6006, allocations: 334.1 kB / 0.7898 GB, free: 46.74 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.0004573/0.6011, allocations: 206.5 kB / 0.79 GB, free: 46.73 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004266/0.6015, allocations: 184.2 kB / 0.7902 GB, free: 46.72 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0002878/0.6018, allocations: 316.5 kB / 0.7905 GB, free: 46.71 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003468/0.6022, allocations: 244.6 kB / 0.7907 GB, free: 46.71 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001603/0.6023, allocations: 137.3 kB / 0.7908 GB, free: 46.69 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002781/0.6026, allocations: 160.2 kB / 0.791 GB, free: 46.67 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 2.89e-05/0.6027, allocations: 21 kB / 0.791 GB, free: 46.67 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003418/0.603, allocations: 236.3 kB / 0.7912 GB, free: 46.67 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 9.606e-05/0.6031, allocations: 103.1 kB / 0.7913 GB, free: 46.66 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.0001033/0.6032, allocations: 135 kB / 0.7915 GB, free: 46.62 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0004076/0.6036, allocations: 414.7 kB / 0.7919 GB, free: 46.57 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 4.979e-06/0.6036, allocations: 0 / 0.7919 GB, free: 46.57 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.824e-06/0.6037, allocations: 0 / 0.7919 GB, free: 46.57 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 6.933e-06/0.6037, allocations: 2.906 kB / 0.7919 GB, free: 46.57 MB / 0.6544 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.0007786/0.6045, allocations: 0.5482 MB / 0.7924 GB, free: 46.14 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.698e-05/0.6045, allocations: 7.406 kB / 0.7924 GB, free: 46.14 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006937/0.6052, allocations: 97.73 kB / 0.7925 GB, free: 46.13 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002629/0.6055, allocations: 259 kB / 0.7927 GB, free: 45.92 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.025e-05/0.6055, allocations: 18.56 kB / 0.7928 GB, free: 45.92 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.261e-05/0.6056, allocations: 24.97 kB / 0.7928 GB, free: 45.92 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004565/0.6061, allocations: 374.6 kB / 0.7931 GB, free: 45.84 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.642e-05/0.6061, allocations: 5.25 kB / 0.7931 GB, free: 45.84 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.911e-05/0.6061, allocations: 13.45 kB / 0.7932 GB, free: 45.84 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.873e-05/0.6062, allocations: 32.02 kB / 0.7932 GB, free: 45.84 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003755/0.6066, allocations: 303.5 kB / 0.7935 GB, free: 45.84 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001372/0.608, allocations: 1.522 MB / 0.795 GB, free: 44.76 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003493/0.6083, allocations: 232.1 kB / 0.7952 GB, free: 44.73 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001269/0.6085, allocations: 116.5 kB / 0.7953 GB, free: 44.72 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001142/0.6086, allocations: 91.64 kB / 0.7954 GB, free: 44.62 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.042e-05/0.6086, allocations: 41.34 kB / 0.7954 GB, free: 44.58 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=18): time 1.803e-06/0.6086, allocations: 0 / 0.7954 GB, free: 44.58 MB / 0.6544 GB Notification: Performance of matching and sorting (n=19): time 0.00102/0.6097, allocations: 0.7906 MB / 0.7962 GB, free: 44.29 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.833e-05/0.6097, allocations: 54.75 kB / 0.7962 GB, free: 44.23 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001415/0.6099, allocations: 200 kB / 0.7964 GB, free: 44.13 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 1.769e-05/0.6099, allocations: 32.39 kB / 0.7965 GB, free: 44.1 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 6.14e-05/0.6099, allocations: 163.8 kB / 0.7966 GB, free: 43.97 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 3.666e-05/0.61, allocations: 63.52 kB / 0.7967 GB, free: 43.93 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.008e-05/0.6101, allocations: 57.66 kB / 0.7967 GB, free: 43.91 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 5.225e-05/0.6101, allocations: 329.3 kB / 0.7971 GB, free: 43.59 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001395/0.6103, allocations: 118.3 kB / 0.7972 GB, free: 43.59 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000157/0.6104, allocations: 176 kB / 0.7973 GB, free: 43.54 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002907/0.6107, allocations: 291.2 kB / 0.7976 GB, free: 43.48 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.6107, allocations: 7 kB / 0.7976 GB, free: 43.48 MB / 0.6544 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006352/0.6114, allocations: 418.2 kB / 0.798 GB, free: 43.42 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.617e-05/0.6114, allocations: 6.656 kB / 0.798 GB, free: 43.42 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.085e-06/0.6114, allocations: 2.188 kB / 0.798 GB, free: 43.42 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003769/0.6118, allocations: 104.1 kB / 0.7981 GB, free: 43.41 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000227/0.6121, allocations: 54.58 kB / 0.7982 GB, free: 43.41 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001514/0.6136, allocations: 1.866 MB / 0.8 GB, free: 42.04 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001992/0.6138, allocations: 21.3 kB / 0.8 GB, free: 42.03 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.042e-05/0.6138, allocations: 8.188 kB / 0.8 GB, free: 42.03 MB / 0.6544 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.0001307/0.614, allocations: 159.8 kB / 0.8002 GB, free: 41.89 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.684e-05/0.614, allocations: 20.94 kB / 0.8002 GB, free: 41.88 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000409/0.6144, allocations: 298.6 kB / 0.8005 GB, free: 41.75 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.555e-06/0.6144, allocations: 3.656 kB / 0.8005 GB, free: 41.75 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.774e-06/0.6144, allocations: 1.812 kB / 0.8005 GB, free: 41.75 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.53e-06/0.6145, allocations: 5.391 kB / 0.8005 GB, free: 41.75 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007511/0.6152, allocations: 0.7054 MB / 0.8012 GB, free: 41.29 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.963e-06/0.6152, allocations: 0 / 0.8012 GB, free: 41.29 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002891/0.6155, allocations: 61.52 kB / 0.8012 GB, free: 41.29 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.138e-06/0.6155, allocations: 2.406 kB / 0.8012 GB, free: 41.29 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.951e-05/0.6156, allocations: 11.27 kB / 0.8013 GB, free: 41.28 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.176e-06/0.6156, allocations: 4.781 kB / 0.8013 GB, free: 41.28 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.6156, allocations: 0 / 0.8013 GB, free: 41.28 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005162/0.6161, allocations: 0.5137 MB / 0.8018 GB, free: 40.99 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 8.57e-05/0.6162, allocations: 118 kB / 0.8019 GB, free: 40.88 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.186e-05/0.6162, allocations: 6.781 kB / 0.8019 GB, free: 40.87 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000167/0.6164, allocations: 10.92 kB / 0.8019 GB, free: 40.87 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.245e-05/0.6164, allocations: 19.75 kB / 0.8019 GB, free: 40.87 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.415e-05/0.6165, allocations: 3.594 kB / 0.8019 GB, free: 40.87 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.0001046/0.6166, allocations: 149 kB / 0.8021 GB, free: 40.77 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6166, allocations: 0 / 0.8021 GB, free: 40.77 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0003568/0.6169, allocations: 64.97 kB / 0.8021 GB, free: 40.76 MB / 0.6544 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.0001245/0.6171, allocations: 110 kB / 0.8022 GB, free: 40.67 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0006459/0.6177, allocations: 424.4 kB / 0.8026 GB, free: 40.46 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 2.945e-06/0.6177, allocations: 0 / 0.8026 GB, free: 40.46 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0001517/0.6179, allocations: 121.9 kB / 0.8027 GB, free: 40.43 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003685/0.6183, allocations: 43.38 kB / 0.8028 GB, free: 40.41 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001056/0.6193, allocations: 0.6503 MB / 0.8034 GB, free: 40.02 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002213/0.6196, allocations: 0.774 MB / 0.8042 GB, free: 39.31 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.352e-05/0.6197, allocations: 22.78 kB / 0.8042 GB, free: 39.3 MB / 0.6544 GB Notification: Performance of SimCode: time 3.4e-07/0.6197, allocations: 0 / 0.8042 GB, free: 39.3 MB / 0.6544 GB Notification: Performance of Templates: time 0.007177/0.6268, allocations: 3.602 MB / 0.8077 GB, free: 39.09 MB / 0.6544 GB make -j1 -f Buildings_8_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.makefile (rm -f Buildings_8_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_8_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_8_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_8_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.sim & ./Buildings_8_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe 2>&1)