Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.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.Loads.Examples.VariableImpedance,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance") translateModel(BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001238/0.001238, allocations: 104.7 kB / 16.27 MB, free: 5.98 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.001156/0.001156, allocations: 189.8 kB / 17.2 MB, free: 5.605 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.4/1.4, allocations: 222.9 MB / 240.9 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002488/0.002488, allocations: 288.8 kB / 291.3 MB, free: 14.52 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.209/1.209, allocations: 178.5 MB / 0.5079 GB, free: 12.77 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002708/0.002708, allocations: 95.84 kB / 0.6071 GB, free: 9.289 MB / 462.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1881/0.1909, allocations: 89.14 MB / 0.6942 GB, free: 76 kB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance): time 0.005753/0.1967, allocations: 3.743 MB / 0.6978 GB, free: 12.3 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.003054/0.1997, allocations: 1.793 MB / 0.6996 GB, free: 10.5 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001738/0.1999, allocations: 11.94 kB / 0.6996 GB, free: 10.49 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.0008403/0.2008, allocations: 262.6 kB / 0.6998 GB, free: 10.23 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0005677/0.2014, allocations: 306.5 kB / 0.7001 GB, free: 9.934 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004952/0.2019, allocations: 246.7 kB / 0.7004 GB, free: 9.695 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0006625/0.2025, allocations: 0.6049 MB / 0.701 GB, free: 9.09 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004421/0.203, allocations: 258.8 kB / 0.7012 GB, free: 8.832 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003387/0.2033, allocations: 243 kB / 0.7014 GB, free: 8.594 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003069/0.2036, allocations: 223 kB / 0.7016 GB, free: 8.375 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 5.007e-05/0.2037, allocations: 28 kB / 0.7017 GB, free: 8.348 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000427/0.2041, allocations: 275.4 kB / 0.7019 GB, free: 8.078 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0001381/0.2043, allocations: 111.6 kB / 0.702 GB, free: 7.969 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0002237/0.2045, allocations: 222.7 kB / 0.7023 GB, free: 7.75 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0006486/0.2052, allocations: 0.5762 MB / 0.7028 GB, free: 7.172 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.469e-06/0.2052, allocations: 0 / 0.7028 GB, free: 7.172 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.342e-06/0.2052, allocations: 0 / 0.7028 GB, free: 7.172 MB / 0.545 GB Notification: Performance of Transformations before backend: time 7.153e-06/0.2052, allocations: 4 kB / 0.7028 GB, free: 7.168 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: 85 * Number of variables: 85 Notification: Performance of Generate backend data structure: time 0.001152/0.2064, allocations: 0.7361 MB / 0.7035 GB, free: 6.379 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.268e-05/0.2064, allocations: 8.031 kB / 0.7035 GB, free: 6.371 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008875/0.2073, allocations: 144.2 kB / 0.7037 GB, free: 6.23 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000493/0.2078, allocations: 367.7 kB / 0.704 GB, free: 5.836 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.462e-05/0.2078, allocations: 25.02 kB / 0.7041 GB, free: 5.812 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.247e-05/0.2079, allocations: 32.36 kB / 0.7041 GB, free: 5.781 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008353/0.2087, allocations: 0.551 MB / 0.7046 GB, free: 5.156 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.93e-05/0.2088, allocations: 7.938 kB / 0.7046 GB, free: 5.148 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.822e-05/0.2088, allocations: 19.92 kB / 0.7047 GB, free: 5.129 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.797e-05/0.2089, allocations: 44.53 kB / 0.7047 GB, free: 5.086 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007741/0.2097, allocations: 405.7 kB / 0.7051 GB, free: 4.688 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003184/0.2129, allocations: 3.334 MB / 0.7083 GB, free: 1.105 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006813/0.2136, allocations: 338.4 kB / 0.7087 GB, free: 0.7656 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003097/0.2139, allocations: 176.8 kB / 0.7088 GB, free: 0.5898 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 2.49e-05/0.2139, allocations: 4 kB / 0.7088 GB, free: 0.5859 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.666e-05/0.2139, allocations: 34.56 kB / 0.7089 GB, free: 0.543 MB / 0.545 GB Notification: Performance of pre-optimization done (n=26): time 1.442e-06/0.214, allocations: 3.938 kB / 0.7089 GB, free: 0.5391 MB / 0.545 GB Notification: Performance of matching and sorting (n=27): time 0.2705/0.4845, allocations: 1.047 MB / 0.7099 GB, free: 50.11 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.669e-05/0.4845, allocations: 61.05 kB / 0.7099 GB, free: 50.05 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000306/0.4849, allocations: 341.2 kB / 0.7103 GB, free: 49.93 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.861e-05/0.4849, allocations: 30.64 kB / 0.7103 GB, free: 49.9 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001091/0.485, allocations: 247.1 kB / 0.7105 GB, free: 49.77 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 5.217e-05/0.4851, allocations: 101.2 kB / 0.7106 GB, free: 49.71 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.964e-05/0.4852, allocations: 78.2 kB / 0.7107 GB, free: 49.69 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 5.657e-05/0.4852, allocations: 345.9 kB / 0.711 GB, free: 49.38 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002404/0.4855, allocations: 149.7 kB / 0.7112 GB, free: 49.38 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003016/0.4858, allocations: 288.1 kB / 0.7115 GB, free: 49.21 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005981/0.4864, allocations: 477 kB / 0.7119 GB, free: 49.04 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/0.4864, allocations: 1.406 kB / 0.7119 GB, free: 49.04 MB / 0.545 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0009272/0.4873, allocations: 0.5686 MB / 0.7125 GB, free: 48.96 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.927e-05/0.4874, allocations: 7.078 kB / 0.7125 GB, free: 48.96 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.646e-06/0.4874, allocations: 5.625 kB / 0.7125 GB, free: 48.96 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003136/0.4877, allocations: 89.44 kB / 0.7126 GB, free: 48.94 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003208/0.488, allocations: 91.08 kB / 0.7127 GB, free: 48.94 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.224e-05/0.4881, allocations: 8.844 kB / 0.7127 GB, free: 48.94 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002559/0.4883, allocations: 29.2 kB / 0.7127 GB, free: 48.94 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.999e-05/0.4884, allocations: 18.64 kB / 0.7127 GB, free: 48.94 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * 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 (45): * Single equations (assignments): 42 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 3 systems {(2,100.0%), (2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001576/0.4885, allocations: 176 kB / 0.7129 GB, free: 48.82 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.877e-05/0.4886, allocations: 40.47 kB / 0.7129 GB, free: 48.8 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007418/0.4893, allocations: 473.8 kB / 0.7134 GB, free: 48.73 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.979e-06/0.4893, allocations: 3.125 kB / 0.7134 GB, free: 48.73 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.123e-06/0.4894, allocations: 0 / 0.7134 GB, free: 48.73 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.469e-06/0.4894, allocations: 3.094 kB / 0.7134 GB, free: 48.73 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001149/0.4905, allocations: 0.9636 MB / 0.7143 GB, free: 48.26 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.116e-06/0.4905, allocations: 3.562 kB / 0.7143 GB, free: 48.26 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002244/0.4908, allocations: 52.61 kB / 0.7144 GB, free: 48.26 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000194/0.491, allocations: 83.06 kB / 0.7144 GB, free: 48.22 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.786e-05/0.491, allocations: 6.875 kB / 0.7145 GB, free: 48.22 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.677e-06/0.491, allocations: 3.531 kB / 0.7145 GB, free: 48.22 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.491, allocations: 0.8438 kB / 0.7145 GB, free: 48.22 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006451/0.4917, allocations: 0.55 MB / 0.715 GB, free: 47.91 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001051/0.4918, allocations: 132.1 kB / 0.7151 GB, free: 47.79 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.014e-05/0.4918, allocations: 13 kB / 0.7151 GB, free: 47.79 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002074/0.492, allocations: 20.92 kB / 0.7152 GB, free: 47.78 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.771e-05/0.4921, allocations: 31.2 kB / 0.7152 GB, free: 47.77 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.345e-05/0.4921, allocations: 3.219 kB / 0.7152 GB, free: 47.77 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0001573/0.4923, allocations: 235.6 kB / 0.7154 GB, free: 47.65 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.4e-07/0.4923, allocations: 2.562 kB / 0.7154 GB, free: 47.65 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0003939/0.4927, allocations: 86.59 kB / 0.7155 GB, free: 47.64 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 simulation (25): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 3 systems {(2,100.0%), (2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001117/0.4928, allocations: 113.3 kB / 0.7156 GB, free: 47.55 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0007252/0.4936, allocations: 0.6588 MB / 0.7162 GB, free: 47.13 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.4936, allocations: 0 / 0.7162 GB, free: 47.13 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0003229/0.4939, allocations: 433.9 kB / 0.7167 GB, free: 46.77 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006607/0.4946, allocations: 130.8 kB / 0.7168 GB, free: 46.75 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000903/0.4955, allocations: 0.7784 MB / 0.7175 GB, free: 46.3 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002171/0.4957, allocations: 0.8223 MB / 0.7183 GB, free: 45.59 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.942e-05/0.4958, allocations: 35.3 kB / 0.7184 GB, free: 45.59 MB / 0.545 GB Notification: Performance of SimCode: time 2.4e-07/0.4958, allocations: 0 / 0.7184 GB, free: 45.59 MB / 0.545 GB Notification: Performance of Templates: time 0.008997/0.5048, allocations: 9.444 MB / 0.7276 GB, free: 44.94 MB / 0.545 GB make -j1 -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.makefile (rm -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.sim & ./BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe 2>&1)