Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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(BuildingSystems.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor") translateModel(BuildingSystems.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.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.005735/0.005735, allocations: 102.3 kB / 15.73 MB, free: 5.578 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.001158/0.001158, allocations: 196.2 kB / 16.67 MB, free: 5.52 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.304/1.304, allocations: 222.9 MB / 240.4 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002071/0.002071, allocations: 283.3 kB / 290.8 MB, free: 14.47 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9059/0.9059, allocations: 169.2 MB / 0.4983 GB, free: 4.445 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001815/0.001815, allocations: 95.86 kB / 0.6814 GB, free: 6.969 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4054/0.4072, allocations: 86.97 MB / 0.7664 GB, free: 3.953 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.004507/0.4117, allocations: 3.079 MB / 0.7694 GB, free: 0.8633 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.002634/0.4144, allocations: 1.726 MB / 0.7711 GB, free: 15.13 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001546/0.4146, allocations: 4 kB / 0.7711 GB, free: 15.12 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.001018/0.4156, allocations: 333.6 kB / 0.7714 GB, free: 14.8 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0005163/0.4161, allocations: 203.1 kB / 0.7716 GB, free: 14.6 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004843/0.4166, allocations: 191.5 kB / 0.7718 GB, free: 14.41 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0003847/0.417, allocations: 319 kB / 0.7721 GB, free: 14.1 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003734/0.4174, allocations: 232.8 kB / 0.7723 GB, free: 13.87 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002181/0.4176, allocations: 139.6 kB / 0.7724 GB, free: 13.73 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003169/0.418, allocations: 155.5 kB / 0.7726 GB, free: 13.58 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 4.597e-05/0.418, allocations: 24 kB / 0.7726 GB, free: 13.56 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004042/0.4184, allocations: 243.5 kB / 0.7728 GB, free: 13.32 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0001131/0.4185, allocations: 103.8 kB / 0.7729 GB, free: 13.22 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0001336/0.4187, allocations: 123.4 kB / 0.773 GB, free: 13.1 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.000535/0.4192, allocations: 429.3 kB / 0.7735 GB, free: 12.68 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.4192, allocations: 4 kB / 0.7735 GB, free: 12.68 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.142e-06/0.4192, allocations: 0 / 0.7735 GB, free: 12.68 MB / 0.545 GB Notification: Performance of Transformations before backend: time 8.386e-06/0.4193, allocations: 0 / 0.7735 GB, free: 12.68 MB / 0.545 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.0009092/0.4202, allocations: 0.5419 MB / 0.774 GB, free: 12.09 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.329e-05/0.4202, allocations: 8.031 kB / 0.774 GB, free: 12.08 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007363/0.421, allocations: 92.55 kB / 0.7741 GB, free: 11.99 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003274/0.4213, allocations: 263.9 kB / 0.7743 GB, free: 11.69 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.912e-05/0.4213, allocations: 16.8 kB / 0.7744 GB, free: 11.68 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.622e-05/0.4214, allocations: 28.47 kB / 0.7744 GB, free: 11.65 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005421/0.422, allocations: 377.1 kB / 0.7747 GB, free: 11.26 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.388e-05/0.422, allocations: 0 / 0.7747 GB, free: 11.26 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.003e-05/0.422, allocations: 11.98 kB / 0.7748 GB, free: 11.25 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.452e-05/0.4221, allocations: 32.41 kB / 0.7748 GB, free: 11.21 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004673/0.4226, allocations: 309.5 kB / 0.7751 GB, free: 10.91 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001703/0.4243, allocations: 1.518 MB / 0.7766 GB, free: 9.242 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004187/0.4248, allocations: 234.4 kB / 0.7768 GB, free: 9.004 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001627/0.4249, allocations: 120.8 kB / 0.7769 GB, free: 8.883 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000133/0.4251, allocations: 89.09 kB / 0.777 GB, free: 8.777 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.403e-05/0.4251, allocations: 38.5 kB / 0.777 GB, free: 8.73 MB / 0.545 GB Notification: Performance of pre-optimization done (n=18): time 1.323e-06/0.4251, allocations: 0 / 0.777 GB, free: 8.73 MB / 0.545 GB Notification: Performance of matching and sorting (n=19): time 0.001214/0.4263, allocations: 0.7954 MB / 0.7778 GB, free: 7.887 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.489e-05/0.4264, allocations: 55.34 kB / 0.7779 GB, free: 7.82 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001842/0.4266, allocations: 195.6 kB / 0.778 GB, free: 7.621 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.261e-05/0.4266, allocations: 29.7 kB / 0.7781 GB, free: 7.586 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 9.377e-05/0.4267, allocations: 155.9 kB / 0.7782 GB, free: 7.43 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 4.765e-05/0.4267, allocations: 71.02 kB / 0.7783 GB, free: 7.359 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001026/0.4269, allocations: 61.59 kB / 0.7783 GB, free: 7.293 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001042/0.427, allocations: 330.8 kB / 0.7787 GB, free: 6.961 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001712/0.4271, allocations: 111.9 kB / 0.7788 GB, free: 6.852 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002074/0.4274, allocations: 171 kB / 0.7789 GB, free: 6.664 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003958/0.4278, allocations: 296.2 kB / 0.7792 GB, free: 6.355 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.292e-06/0.4278, allocations: 0 / 0.7792 GB, free: 6.355 MB / 0.545 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007672/0.4285, allocations: 429.1 kB / 0.7796 GB, free: 5.93 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.869e-05/0.4286, allocations: 8 kB / 0.7796 GB, free: 5.922 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-06/0.4286, allocations: 0 / 0.7796 GB, free: 5.922 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003987/0.429, allocations: 101 kB / 0.7797 GB, free: 5.82 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002375/0.4292, allocations: 51.89 kB / 0.7798 GB, free: 5.77 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001835/0.4311, allocations: 1.875 MB / 0.7816 GB, free: 3.75 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002097/0.4313, allocations: 19.95 kB / 0.7816 GB, free: 3.73 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.31e-05/0.4313, allocations: 12 kB / 0.7816 GB, free: 3.719 MB / 0.545 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.0001456/0.4315, allocations: 161.8 kB / 0.7818 GB, free: 3.551 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.516e-05/0.4315, allocations: 15.81 kB / 0.7818 GB, free: 3.535 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004629/0.432, allocations: 295.5 kB / 0.7821 GB, free: 3.242 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.467e-06/0.432, allocations: 4 kB / 0.7821 GB, free: 3.238 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.292e-06/0.432, allocations: 0 / 0.7821 GB, free: 3.238 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.358e-06/0.432, allocations: 7.938 kB / 0.7821 GB, free: 3.23 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000844/0.4329, allocations: 0.699 MB / 0.7828 GB, free: 2.469 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.557e-06/0.4329, allocations: 4 kB / 0.7828 GB, free: 2.465 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003092/0.4332, allocations: 55.89 kB / 0.7828 GB, free: 2.41 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.134e-06/0.4332, allocations: 4 kB / 0.7828 GB, free: 2.406 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.999e-05/0.4333, allocations: 11.88 kB / 0.7829 GB, free: 2.395 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.539e-06/0.4333, allocations: 7.984 kB / 0.7829 GB, free: 2.387 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.4333, allocations: 0 / 0.7829 GB, free: 2.387 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00063/0.4339, allocations: 0.516 MB / 0.7834 GB, free: 1.852 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001325/0.434, allocations: 120.8 kB / 0.7835 GB, free: 1.715 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.041e-05/0.4341, allocations: 4 kB / 0.7835 GB, free: 1.711 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001731/0.4343, allocations: 19.92 kB / 0.7835 GB, free: 1.691 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.237e-05/0.4343, allocations: 7.984 kB / 0.7835 GB, free: 1.684 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.534e-05/0.4343, allocations: 12.06 kB / 0.7835 GB, free: 1.672 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0001258/0.4345, allocations: 144.1 kB / 0.7837 GB, free: 1.527 MB / 0.545 GB Notification: Performance of sort global known variables: time 1e-07/0.4345, allocations: 0 / 0.7837 GB, free: 1.527 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0003581/0.4348, allocations: 68 kB / 0.7837 GB, free: 1.461 MB / 0.545 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.000144/0.435, allocations: 111.2 kB / 0.7838 GB, free: 1.34 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0007163/0.4357, allocations: 418.7 kB / 0.7842 GB, free: 0.918 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.4357, allocations: 3.938 kB / 0.7842 GB, free: 0.9141 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0001741/0.4359, allocations: 123.9 kB / 0.7843 GB, free: 0.793 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003968/0.4363, allocations: 43.64 kB / 0.7844 GB, free: 0.75 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001233/0.4375, allocations: 0.6235 MB / 0.785 GB, free: 96 kB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004117/0.438, allocations: 0.7753 MB / 0.7858 GB, free: 15.29 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0001634/0.4381, allocations: 53.92 kB / 0.7858 GB, free: 15.24 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.617e-05/0.4382, allocations: 27.42 kB / 0.7858 GB, free: 15.21 MB / 0.5606 GB Notification: Performance of SimCode: time 2.21e-07/0.4382, allocations: 0 / 0.7858 GB, free: 15.21 MB / 0.5606 GB Notification: Performance of Templates: time 0.006403/0.4446, allocations: 2.821 MB / 0.7886 GB, free: 12.41 MB / 0.5606 GB make -j1 -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.makefile (rm -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.sim & ./BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe 2>&1)