Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.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.DynamicLoads,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads") translateModel(BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005239/0.005239, allocations: 101.5 kB / 15.73 MB, free: 5.992 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.001299/0.001299, allocations: 198.8 kB / 16.68 MB, free: 5.918 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.302/1.302, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002118/0.002118, allocations: 290.1 kB / 290.8 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9394/0.9394, allocations: 169.2 MB / 0.4983 GB, free: 4.445 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001855/0.001855, allocations: 92.08 kB / 0.6814 GB, free: 6.961 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4185/0.4203, allocations: 86.98 MB / 0.7664 GB, free: 3.918 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads): time 0.00461/0.425, allocations: 3.254 MB / 0.7696 GB, free: 0.6523 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.002947/0.4279, allocations: 1.854 MB / 0.7714 GB, free: 14.79 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001775/0.4281, allocations: 7.938 kB / 0.7714 GB, free: 14.78 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.0009219/0.4291, allocations: 294.8 kB / 0.7717 GB, free: 14.49 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0004888/0.4296, allocations: 219 kB / 0.7719 GB, free: 14.28 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006572/0.4303, allocations: 294.8 kB / 0.7722 GB, free: 13.99 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0005396/0.4308, allocations: 410.7 kB / 0.7725 GB, free: 13.59 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004051/0.4312, allocations: 202.4 kB / 0.7727 GB, free: 13.39 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002911/0.4315, allocations: 163.4 kB / 0.7729 GB, free: 13.23 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004256/0.432, allocations: 203.3 kB / 0.7731 GB, free: 13.04 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 6.38e-05/0.432, allocations: 24 kB / 0.7731 GB, free: 13.01 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004407/0.4325, allocations: 235.6 kB / 0.7733 GB, free: 12.78 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0001502/0.4326, allocations: 123.6 kB / 0.7735 GB, free: 12.66 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.000165/0.4328, allocations: 135.3 kB / 0.7736 GB, free: 12.53 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0006114/0.4334, allocations: 473.2 kB / 0.774 GB, free: 12.07 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.4334, allocations: 0 / 0.774 GB, free: 12.07 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.773e-06/0.4335, allocations: 0 / 0.774 GB, free: 12.07 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.269e-05/0.4335, allocations: 0 / 0.774 GB, free: 12.07 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: 68 * Number of variables: 68 Notification: Performance of Generate backend data structure: time 0.001064/0.4345, allocations: 0.6004 MB / 0.7746 GB, free: 11.41 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.189e-05/0.4346, allocations: 8.031 kB / 0.7746 GB, free: 11.41 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007338/0.4353, allocations: 92.45 kB / 0.7747 GB, free: 11.32 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003661/0.4357, allocations: 292.3 kB / 0.775 GB, free: 10.99 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.838e-05/0.4357, allocations: 20.94 kB / 0.775 GB, free: 10.97 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001259/0.4359, allocations: 32.73 kB / 0.775 GB, free: 10.94 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006758/0.4365, allocations: 445 kB / 0.7755 GB, free: 10.47 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.608e-05/0.4366, allocations: 4 kB / 0.7755 GB, free: 10.46 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.494e-05/0.4366, allocations: 12 kB / 0.7755 GB, free: 10.45 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001346/0.4367, allocations: 36.53 kB / 0.7755 GB, free: 10.42 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005657/0.4373, allocations: 349.9 kB / 0.7759 GB, free: 10.08 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002399/0.4397, allocations: 2.199 MB / 0.778 GB, free: 7.68 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004188/0.4402, allocations: 270.3 kB / 0.7783 GB, free: 7.406 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002183/0.4404, allocations: 161.7 kB / 0.7784 GB, free: 7.246 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 2.39e-05/0.4404, allocations: 4 kB / 0.7784 GB, free: 7.242 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.097e-05/0.4405, allocations: 34.56 kB / 0.7784 GB, free: 7.199 MB / 0.545 GB Notification: Performance of pre-optimization done (n=22): time 1.383e-06/0.4405, allocations: 0 / 0.7784 GB, free: 7.199 MB / 0.545 GB Notification: Performance of matching and sorting (n=23): time 0.001703/0.4422, allocations: 1.05 MB / 0.7795 GB, free: 6.082 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.236e-05/0.4422, allocations: 59.27 kB / 0.7795 GB, free: 6.012 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002456/0.4425, allocations: 248.9 kB / 0.7798 GB, free: 5.766 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.603e-05/0.4425, allocations: 33.7 kB / 0.7798 GB, free: 5.727 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001102/0.4426, allocations: 187.9 kB / 0.78 GB, free: 5.539 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 6.296e-05/0.4427, allocations: 94.67 kB / 0.7801 GB, free: 5.445 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001221/0.4428, allocations: 77.55 kB / 0.7801 GB, free: 5.363 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001131/0.4429, allocations: 334.8 kB / 0.7805 GB, free: 5.027 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002365/0.4432, allocations: 151.9 kB / 0.7806 GB, free: 4.879 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002778/0.4435, allocations: 237.6 kB / 0.7808 GB, free: 4.609 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005021/0.444, allocations: 398.9 kB / 0.7812 GB, free: 4.188 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.444, allocations: 0 / 0.7812 GB, free: 4.188 MB / 0.545 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.00109/0.4451, allocations: 0.5898 MB / 0.7818 GB, free: 3.59 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.585e-05/0.4451, allocations: 4 kB / 0.7818 GB, free: 3.586 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.997e-06/0.4451, allocations: 4 kB / 0.7818 GB, free: 3.582 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006783/0.4458, allocations: 192.9 kB / 0.782 GB, free: 3.391 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002753/0.4461, allocations: 59.89 kB / 0.782 GB, free: 3.332 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003161/0.4493, allocations: 2.496 MB / 0.7845 GB, free: 0.6914 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000277/0.4496, allocations: 24 kB / 0.7845 GB, free: 0.668 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.753e-05/0.4496, allocations: 12 kB / 0.7845 GB, free: 0.6562 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (32): * Single equations (assignments): 31 * 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,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001636/0.4498, allocations: 169.8 kB / 0.7847 GB, free: 492 kB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.492e-05/0.4498, allocations: 27.66 kB / 0.7847 GB, free: 464 kB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005051/0.4503, allocations: 347.6 kB / 0.785 GB, free: 112 kB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.941e-06/0.4504, allocations: 4 kB / 0.785 GB, free: 108 kB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.366e-06/0.4504, allocations: 7.922 kB / 0.785 GB, free: 100 kB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.496e-06/0.4504, allocations: 0 / 0.785 GB, free: 100 kB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009959/0.4514, allocations: 0.8141 MB / 0.7858 GB, free: 15.22 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.967e-06/0.4514, allocations: 4 kB / 0.7858 GB, free: 15.22 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003869/0.4518, allocations: 75.88 kB / 0.7859 GB, free: 15.14 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.54e-06/0.4518, allocations: 4 kB / 0.7859 GB, free: 15.14 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.407e-05/0.4518, allocations: 4 kB / 0.7859 GB, free: 15.14 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-05/0.4518, allocations: 4 kB / 0.7859 GB, free: 15.13 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.4518, allocations: 0 / 0.7859 GB, free: 15.13 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007194/0.4526, allocations: 0.6085 MB / 0.7865 GB, free: 14.5 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000128/0.4527, allocations: 128.8 kB / 0.7866 GB, free: 14.36 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.847e-05/0.4527, allocations: 8 kB / 0.7866 GB, free: 14.35 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002039/0.453, allocations: 11.98 kB / 0.7867 GB, free: 14.34 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.018e-05/0.453, allocations: 19.86 kB / 0.7867 GB, free: 14.32 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.578e-05/0.453, allocations: 8 kB / 0.7867 GB, free: 14.31 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0001797/0.4532, allocations: 180.5 kB / 0.7869 GB, free: 14.14 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.6e-07/0.4532, allocations: 0 / 0.7869 GB, free: 14.14 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0004139/0.4536, allocations: 96 kB / 0.787 GB, free: 14.04 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (dynRC.q[1],dynRC.q[2],dynRL.psi[1],dynRL.psi[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 (24): * Single equations (assignments): 24 * 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.0001757/0.4538, allocations: 107.2 kB / 0.7871 GB, free: 13.93 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0009275/0.4548, allocations: 0.5339 MB / 0.7876 GB, free: 13.38 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.4548, allocations: 0 / 0.7876 GB, free: 13.38 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0002104/0.455, allocations: 150.9 kB / 0.7877 GB, free: 13.23 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004336/0.4554, allocations: 56.28 kB / 0.7878 GB, free: 13.18 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001569/0.457, allocations: 0.8436 MB / 0.7886 GB, free: 12.3 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003965/0.4574, allocations: 0.795 MB / 0.7894 GB, free: 11.48 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0002079/0.4576, allocations: 78.89 kB / 0.7894 GB, free: 11.41 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.642e-05/0.4577, allocations: 19.44 kB / 0.7895 GB, free: 11.39 MB / 0.5606 GB Notification: Performance of SimCode: time 7.11e-07/0.4577, allocations: 3.938 kB / 0.7895 GB, free: 11.38 MB / 0.5606 GB Notification: Performance of Templates: time 0.008027/0.4658, allocations: 4.062 MB / 0.7934 GB, free: 7.348 MB / 0.5606 GB make -j1 -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.makefile (rm -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.sim & ./BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.pipe 2>&1)