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.00113/0.001137, allocations: 102 kB / 16.41 MB, free: 6.488 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.001049/0.001049, allocations: 192.2 kB / 17.34 MB, free: 5.73 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.449/1.449, allocations: 222.9 MB / 241 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002184/0.002184, allocations: 286.5 kB / 291.5 MB, free: 14.43 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9989/0.9989, allocations: 169.3 MB / 0.499 GB, free: 4.414 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001775/0.001775, allocations: 91.86 kB / 0.6821 GB, free: 6.957 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.49/0.4918, allocations: 86.99 MB / 0.7671 GB, free: 4.062 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads): time 0.004734/0.4966, allocations: 3.246 MB / 0.7702 GB, free: 0.8047 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.003024/0.4996, allocations: 1.854 MB / 0.772 GB, free: 14.94 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001762/0.4998, allocations: 8 kB / 0.772 GB, free: 14.93 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.0009556/0.5008, allocations: 294.8 kB / 0.7723 GB, free: 14.64 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0005843/0.5014, allocations: 215 kB / 0.7725 GB, free: 14.43 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.000753/0.5022, allocations: 291.3 kB / 0.7728 GB, free: 14.15 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0005191/0.5027, allocations: 410.7 kB / 0.7732 GB, free: 13.75 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003571/0.5031, allocations: 204 kB / 0.7734 GB, free: 13.55 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001974/0.5033, allocations: 159.5 kB / 0.7735 GB, free: 13.39 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003347/0.5036, allocations: 199.2 kB / 0.7737 GB, free: 13.2 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 3.901e-05/0.5037, allocations: 24 kB / 0.7738 GB, free: 13.17 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003666/0.5041, allocations: 235.6 kB / 0.774 GB, free: 12.94 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.000129/0.5042, allocations: 119.7 kB / 0.7741 GB, free: 12.82 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0001447/0.5043, allocations: 151.2 kB / 0.7742 GB, free: 12.68 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0005598/0.5049, allocations: 469.2 kB / 0.7747 GB, free: 12.22 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 6.332e-06/0.5049, allocations: 8 kB / 0.7747 GB, free: 12.21 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.462e-06/0.5049, allocations: 0 / 0.7747 GB, free: 12.21 MB / 0.545 GB Notification: Performance of Transformations before backend: time 7.434e-06/0.505, allocations: 0 / 0.7747 GB, free: 12.21 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.0009721/0.5059, allocations: 0.5848 MB / 0.7753 GB, free: 11.57 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.661e-05/0.506, allocations: 8.031 kB / 0.7753 GB, free: 11.57 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007614/0.5067, allocations: 92.47 kB / 0.7754 GB, free: 11.48 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003942/0.5071, allocations: 294.2 kB / 0.7756 GB, free: 11.15 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.079e-05/0.5072, allocations: 12.94 kB / 0.7757 GB, free: 11.14 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001181/0.5073, allocations: 36.72 kB / 0.7757 GB, free: 11.1 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006225/0.5079, allocations: 449.1 kB / 0.7761 GB, free: 10.63 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.584e-05/0.508, allocations: 4 kB / 0.7761 GB, free: 10.62 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.534e-05/0.508, allocations: 7.984 kB / 0.7761 GB, free: 10.62 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001553/0.5082, allocations: 40.53 kB / 0.7762 GB, free: 10.58 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005039/0.5087, allocations: 353.9 kB / 0.7765 GB, free: 10.23 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002274/0.5109, allocations: 2.203 MB / 0.7787 GB, free: 7.832 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004215/0.5114, allocations: 271.1 kB / 0.7789 GB, free: 7.559 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002117/0.5116, allocations: 156.8 kB / 0.7791 GB, free: 7.402 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 2.077e-05/0.5116, allocations: 7.984 kB / 0.7791 GB, free: 7.395 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.375e-05/0.5117, allocations: 34.56 kB / 0.7791 GB, free: 7.352 MB / 0.545 GB Notification: Performance of pre-optimization done (n=22): time 1.403e-06/0.5117, allocations: 0 / 0.7791 GB, free: 7.352 MB / 0.545 GB Notification: Performance of matching and sorting (n=23): time 0.001724/0.5134, allocations: 1.051 MB / 0.7801 GB, free: 6.234 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.101e-05/0.5135, allocations: 63.27 kB / 0.7802 GB, free: 6.16 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002508/0.5137, allocations: 248.9 kB / 0.7804 GB, free: 5.914 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.719e-05/0.5138, allocations: 33.64 kB / 0.7805 GB, free: 5.875 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001184/0.5139, allocations: 191.9 kB / 0.7806 GB, free: 5.684 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 6.031e-05/0.5139, allocations: 82.75 kB / 0.7807 GB, free: 5.602 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001138/0.5141, allocations: 81.55 kB / 0.7808 GB, free: 5.516 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001254/0.5142, allocations: 330.8 kB / 0.7811 GB, free: 5.184 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002375/0.5144, allocations: 151.9 kB / 0.7813 GB, free: 5.035 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002869/0.5147, allocations: 241.6 kB / 0.7815 GB, free: 4.762 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005007/0.5152, allocations: 390.9 kB / 0.7819 GB, free: 4.348 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.5153, allocations: 8 kB / 0.7819 GB, free: 4.34 MB / 0.545 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001056/0.5163, allocations: 0.586 MB / 0.7824 GB, free: 3.746 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.816e-05/0.5163, allocations: 6.656 kB / 0.7825 GB, free: 3.742 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.646e-06/0.5164, allocations: 8 kB / 0.7825 GB, free: 3.734 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006784/0.517, allocations: 192.6 kB / 0.7826 GB, free: 3.543 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002692/0.5173, allocations: 59.91 kB / 0.7827 GB, free: 3.484 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002849/0.5202, allocations: 2.495 MB / 0.7851 GB, free: 0.8477 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002897/0.5205, allocations: 20.16 kB / 0.7852 GB, free: 0.8281 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.098e-05/0.5205, allocations: 23.92 kB / 0.7852 GB, free: 0.8047 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.0001759/0.5207, allocations: 160 kB / 0.7853 GB, free: 0.6406 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.877e-05/0.5208, allocations: 27.66 kB / 0.7854 GB, free: 0.6133 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005414/0.5213, allocations: 351.6 kB / 0.7857 GB, free: 272 kB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.699e-06/0.5213, allocations: 4 kB / 0.7857 GB, free: 268 kB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.122e-06/0.5213, allocations: 0 / 0.7857 GB, free: 268 kB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.14e-06/0.5214, allocations: 0 / 0.7857 GB, free: 268 kB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001055/0.5224, allocations: 0.8237 MB / 0.7865 GB, free: 15.38 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.334e-06/0.5224, allocations: 0 / 0.7865 GB, free: 15.38 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003896/0.5228, allocations: 75.94 kB / 0.7866 GB, free: 15.3 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.879e-06/0.5228, allocations: 0 / 0.7866 GB, free: 15.3 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.481e-05/0.5229, allocations: 15.92 kB / 0.7866 GB, free: 15.29 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.094e-06/0.5229, allocations: 0 / 0.7866 GB, free: 15.29 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.637e-06/0.5229, allocations: 4 kB / 0.7866 GB, free: 15.28 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007356/0.5236, allocations: 0.6065 MB / 0.7872 GB, free: 14.65 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001313/0.5238, allocations: 124.8 kB / 0.7873 GB, free: 14.51 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.631e-05/0.5238, allocations: 11.98 kB / 0.7873 GB, free: 14.5 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002068/0.524, allocations: 11.98 kB / 0.7873 GB, free: 14.49 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.898e-05/0.5241, allocations: 19.86 kB / 0.7873 GB, free: 14.47 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.588e-05/0.5241, allocations: 8 kB / 0.7874 GB, free: 14.46 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0001884/0.5243, allocations: 180.5 kB / 0.7875 GB, free: 14.29 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.4e-07/0.5243, allocations: 0 / 0.7875 GB, free: 14.29 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0003947/0.5247, allocations: 91.98 kB / 0.7876 GB, free: 14.2 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.0001579/0.5249, allocations: 114.5 kB / 0.7877 GB, free: 14.07 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0009164/0.5258, allocations: 0.5281 MB / 0.7882 GB, free: 13.54 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 4.829e-06/0.5258, allocations: 4 kB / 0.7882 GB, free: 13.53 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0002398/0.526, allocations: 146.7 kB / 0.7884 GB, free: 13.39 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006989/0.5268, allocations: 56.33 kB / 0.7884 GB, free: 13.34 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001512/0.5283, allocations: 0.8775 MB / 0.7893 GB, free: 12.42 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003888/0.5287, allocations: 0.8028 MB / 0.7901 GB, free: 11.59 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001008/0.5288, allocations: 23.44 kB / 0.7901 GB, free: 11.57 MB / 0.5606 GB Notification: Performance of SimCode: time 2.41e-07/0.5288, allocations: 0 / 0.7901 GB, free: 11.57 MB / 0.5606 GB Notification: Performance of Templates: time 0.00749/0.5363, allocations: 4.459 MB / 0.7945 GB, free: 7.121 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)