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.001275/0.001275, allocations: 114.3 kB / 16.37 MB, free: 5.539 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.001241/0.001241, allocations: 187.5 kB / 17.3 MB, free: 5.184 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.274/1.274, allocations: 222.9 MB / 241 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002164/0.002164, allocations: 293.6 kB / 291.4 MB, free: 14.49 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9212/0.9212, allocations: 169.3 MB / 0.4989 GB, free: 4.469 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001732/0.001732, allocations: 104.1 kB / 0.5967 GB, free: 14.45 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1406/0.1423, allocations: 86.96 MB / 0.6816 GB, free: 7.465 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.004314/0.1466, allocations: 3.071 MB / 0.6846 GB, free: 4.379 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0024/0.1491, allocations: 1.726 MB / 0.6863 GB, free: 2.645 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.246e-05/0.1492, allocations: 4 kB / 0.6863 GB, free: 2.641 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009615/0.1501, allocations: 341.7 kB / 0.6866 GB, free: 2.309 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004077/0.1506, allocations: 215.1 kB / 0.6868 GB, free: 2.098 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003997/0.151, allocations: 175.5 kB / 0.687 GB, free: 1.926 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003216/0.1513, allocations: 319 kB / 0.6873 GB, free: 1.613 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003447/0.1517, allocations: 232.7 kB / 0.6875 GB, free: 1.383 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001611/0.1518, allocations: 139.5 kB / 0.6877 GB, free: 1.246 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00027/0.1521, allocations: 159.5 kB / 0.6878 GB, free: 1.09 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.271e-05/0.1521, allocations: 24 kB / 0.6878 GB, free: 1.066 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003438/0.1525, allocations: 243.5 kB / 0.6881 GB, free: 0.8281 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001019/0.1526, allocations: 103.8 kB / 0.6882 GB, free: 0.7266 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000118/0.1527, allocations: 119.4 kB / 0.6883 GB, free: 0.6094 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004278/0.1532, allocations: 426.7 kB / 0.6887 GB, free: 196 kB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.956e-06/0.1532, allocations: 0 / 0.6887 GB, free: 196 kB / 494.1 MB Notification: Performance of FrontEnd: time 1.163e-06/0.1532, allocations: 0 / 0.6887 GB, free: 196 kB / 494.1 MB Notification: Performance of Transformations before backend: time 5.871e-06/0.1532, allocations: 0 / 0.6887 GB, free: 196 kB / 494.1 MB 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.2428/0.396, allocations: 0.5399 MB / 0.6892 GB, free: 18.46 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.046e-05/0.3961, allocations: 10.58 kB / 0.6892 GB, free: 18.46 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008109/0.3969, allocations: 96.66 kB / 0.6893 GB, free: 18.45 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003761/0.3973, allocations: 261.9 kB / 0.6896 GB, free: 18.24 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.152e-05/0.3973, allocations: 17.59 kB / 0.6896 GB, free: 18.24 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001053/0.3974, allocations: 27.78 kB / 0.6896 GB, free: 18.24 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005997/0.3981, allocations: 368.5 kB / 0.69 GB, free: 18.16 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.53e-05/0.3981, allocations: 7.766 kB / 0.69 GB, free: 18.16 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.363e-05/0.3981, allocations: 14.59 kB / 0.69 GB, free: 18.16 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001015/0.3982, allocations: 30.31 kB / 0.69 GB, free: 18.16 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000493/0.3987, allocations: 306.2 kB / 0.6903 GB, free: 18.16 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001675/0.4004, allocations: 1.526 MB / 0.6918 GB, free: 17.01 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004314/0.4009, allocations: 228 kB / 0.692 GB, free: 16.92 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001544/0.401, allocations: 122.5 kB / 0.6921 GB, free: 16.87 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001212/0.4012, allocations: 91.88 kB / 0.6922 GB, free: 16.77 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.957e-05/0.4012, allocations: 32.45 kB / 0.6922 GB, free: 16.73 MB / 494.1 MB Notification: Performance of pre-optimization done (n=18): time 1.563e-06/0.4012, allocations: 1.406 kB / 0.6922 GB, free: 16.73 MB / 494.1 MB Notification: Performance of matching and sorting (n=19): time 0.001202/0.4024, allocations: 0.7939 MB / 0.693 GB, free: 16.25 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.704e-05/0.4024, allocations: 53.56 kB / 0.6931 GB, free: 16.19 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001751/0.4026, allocations: 193.8 kB / 0.6933 GB, free: 16.05 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.8e-05/0.4027, allocations: 31.55 kB / 0.6933 GB, free: 16.02 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.505e-05/0.4027, allocations: 157.5 kB / 0.6934 GB, free: 15.88 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.941e-05/0.4028, allocations: 66.83 kB / 0.6935 GB, free: 15.83 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.056e-05/0.4029, allocations: 56.16 kB / 0.6936 GB, free: 15.8 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 4.674e-05/0.4029, allocations: 333.9 kB / 0.6939 GB, free: 15.48 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001758/0.4031, allocations: 116.6 kB / 0.694 GB, free: 15.44 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001999/0.4033, allocations: 171.8 kB / 0.6942 GB, free: 15.34 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003617/0.4037, allocations: 299 kB / 0.6944 GB, free: 15.18 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.4037, allocations: 1.125 kB / 0.6944 GB, free: 15.18 MB / 494.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007535/0.4044, allocations: 420.8 kB / 0.6948 GB, free: 15.01 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.783e-05/0.4045, allocations: 10.38 kB / 0.6948 GB, free: 15 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.953e-06/0.4045, allocations: 3.562 kB / 0.6949 GB, free: 15 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004158/0.4049, allocations: 101.5 kB / 0.6949 GB, free: 14.98 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000255/0.4052, allocations: 48.48 kB / 0.695 GB, free: 14.98 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001659/0.4068, allocations: 1.875 MB / 0.6968 GB, free: 13.41 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002364/0.4071, allocations: 19.64 kB / 0.6968 GB, free: 13.41 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.808e-05/0.4071, allocations: 16.94 kB / 0.6969 GB, free: 13.4 MB / 494.1 MB 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.0001345/0.4073, allocations: 159.7 kB / 0.697 GB, free: 13.26 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.05e-05/0.4073, allocations: 17.33 kB / 0.697 GB, free: 13.25 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004671/0.4078, allocations: 300 kB / 0.6973 GB, free: 13.12 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.991e-06/0.4078, allocations: 6.562 kB / 0.6973 GB, free: 13.12 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.733e-06/0.4078, allocations: 3.188 kB / 0.6973 GB, free: 13.12 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.338e-06/0.4078, allocations: 4.594 kB / 0.6973 GB, free: 13.12 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008794/0.4087, allocations: 0.7013 MB / 0.698 GB, free: 12.66 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.176e-06/0.4087, allocations: 1.406 kB / 0.698 GB, free: 12.66 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003112/0.4091, allocations: 57.98 kB / 0.6981 GB, free: 12.66 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.797e-06/0.4091, allocations: 1.375 kB / 0.6981 GB, free: 12.66 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.205e-05/0.4091, allocations: 8.516 kB / 0.6981 GB, free: 12.66 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.148e-06/0.4091, allocations: 6.562 kB / 0.6981 GB, free: 12.65 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.4091, allocations: 1.875 kB / 0.6981 GB, free: 12.65 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005921/0.4097, allocations: 0.5134 MB / 0.6986 GB, free: 12.36 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001166/0.4098, allocations: 118.9 kB / 0.6987 GB, free: 12.25 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.936e-05/0.4099, allocations: 6.875 kB / 0.6987 GB, free: 12.25 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001894/0.4101, allocations: 17.14 kB / 0.6987 GB, free: 12.24 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.599e-05/0.4101, allocations: 18.62 kB / 0.6987 GB, free: 12.23 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.53e-05/0.4101, allocations: 4.656 kB / 0.6987 GB, free: 12.23 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001217/0.4103, allocations: 142.7 kB / 0.6989 GB, free: 12.14 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4103, allocations: 0 / 0.6989 GB, free: 12.14 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0003837/0.4107, allocations: 66.42 kB / 0.6989 GB, free: 12.13 MB / 494.1 MB 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.0001228/0.4108, allocations: 105.5 kB / 0.699 GB, free: 12.04 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0006954/0.4115, allocations: 428.7 kB / 0.6995 GB, free: 11.82 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.4115, allocations: 1.375 kB / 0.6995 GB, free: 11.82 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001656/0.4117, allocations: 127.4 kB / 0.6996 GB, free: 11.78 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003825/0.4121, allocations: 40.88 kB / 0.6996 GB, free: 11.77 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001108/0.4132, allocations: 0.6221 MB / 0.7002 GB, free: 11.4 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000227/0.4134, allocations: 0.7842 MB / 0.701 GB, free: 10.68 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0001932/0.4136, allocations: 55.8 kB / 0.701 GB, free: 10.68 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.669e-05/0.4137, allocations: 24.61 kB / 0.7011 GB, free: 10.67 MB / 494.1 MB Notification: Performance of SimCode: time 4.71e-07/0.4137, allocations: 0 / 0.7011 GB, free: 10.67 MB / 494.1 MB Notification: Performance of Templates: time 0.006863/0.4206, allocations: 2.775 MB / 0.7038 GB, free: 10.5 MB / 494.1 MB 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 -s gbode -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe 2>&1)