Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.DC.Sources.Examples.VoltageSource.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.DC.Sources.Examples.VoltageSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.DC.Sources.Examples.VoltageSource") translateModel(BuildingSystems.Electrical.DC.Sources.Examples.VoltageSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.DC.Sources.Examples.VoltageSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001242/0.001242, allocations: 107.3 kB / 16.41 MB, free: 6.406 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.001226/0.001226, allocations: 188.9 kB / 17.34 MB, free: 5.695 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.362/1.362, allocations: 222.9 MB / 241 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002193/0.002193, allocations: 277.8 kB / 291.5 MB, free: 14.44 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9681/0.9681, allocations: 169.2 MB / 0.499 GB, free: 4.438 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003236/0.003237, allocations: 99.83 kB / 0.6821 GB, free: 6.98 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4871/0.4903, allocations: 86.97 MB / 0.767 GB, free: 3.918 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Sources.Examples.VoltageSource): time 0.005088/0.4955, allocations: 3.214 MB / 0.7702 GB, free: 0.6953 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.002368/0.4979, allocations: 1.363 MB / 0.7715 GB, free: 15.32 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001575/0.4981, allocations: 7.938 kB / 0.7715 GB, free: 15.32 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.001072/0.4992, allocations: 338.7 kB / 0.7718 GB, free: 14.98 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0003815/0.4996, allocations: 147.2 kB / 0.772 GB, free: 14.84 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004143/0.5, allocations: 147.6 kB / 0.7721 GB, free: 14.7 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0003893/0.5004, allocations: 334.6 kB / 0.7724 GB, free: 14.37 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004676/0.5009, allocations: 247.7 kB / 0.7727 GB, free: 14.12 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002132/0.5011, allocations: 139.5 kB / 0.7728 GB, free: 13.98 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003199/0.5014, allocations: 151.4 kB / 0.7729 GB, free: 13.84 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 3.932e-05/0.5015, allocations: 20 kB / 0.773 GB, free: 13.82 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003227/0.5018, allocations: 171.6 kB / 0.7731 GB, free: 13.65 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.000104/0.5019, allocations: 79.8 kB / 0.7732 GB, free: 13.57 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0001218/0.5021, allocations: 127.4 kB / 0.7733 GB, free: 13.45 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0004903/0.5025, allocations: 353.5 kB / 0.7737 GB, free: 13.1 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 7.925e-06/0.5026, allocations: 7.984 kB / 0.7737 GB, free: 13.09 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.743e-06/0.5026, allocations: 0 / 0.7737 GB, free: 13.09 MB / 0.545 GB Notification: Performance of Transformations before backend: time 6.211e-06/0.5026, allocations: 0 / 0.7737 GB, free: 13.09 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.0009593/0.5036, allocations: 0.5341 MB / 0.7742 GB, free: 12.51 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.025e-05/0.5036, allocations: 8.031 kB / 0.7742 GB, free: 12.5 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006347/0.5042, allocations: 88.48 kB / 0.7743 GB, free: 12.42 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003232/0.5046, allocations: 258.3 kB / 0.7745 GB, free: 12.13 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.656e-05/0.5046, allocations: 20.73 kB / 0.7745 GB, free: 12.11 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.362e-05/0.5046, allocations: 16.38 kB / 0.7746 GB, free: 12.09 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005378/0.5052, allocations: 324.6 kB / 0.7749 GB, free: 11.75 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.216e-05/0.5052, allocations: 0 / 0.7749 GB, free: 11.75 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.068e-05/0.5053, allocations: 8 kB / 0.7749 GB, free: 11.75 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.433e-05/0.5053, allocations: 16.38 kB / 0.7749 GB, free: 11.73 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003969/0.5057, allocations: 217.5 kB / 0.7751 GB, free: 11.52 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00164/0.5073, allocations: 1.49 MB / 0.7766 GB, free: 9.863 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004479/0.5078, allocations: 203.6 kB / 0.7767 GB, free: 9.637 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.235e-05/0.5079, allocations: 40.84 kB / 0.7768 GB, free: 9.594 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 1.686e-05/0.5079, allocations: 3.984 kB / 0.7768 GB, free: 9.59 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.44e-05/0.508, allocations: 38.56 kB / 0.7768 GB, free: 9.543 MB / 0.545 GB Notification: Performance of pre-optimization done (n=8): time 1.403e-06/0.508, allocations: 0 / 0.7768 GB, free: 9.543 MB / 0.545 GB Notification: Performance of matching and sorting (n=8): time 0.0006057/0.5086, allocations: 259.4 kB / 0.7771 GB, free: 9.262 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.227e-05/0.5086, allocations: 51.41 kB / 0.7771 GB, free: 9.199 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000198/0.5088, allocations: 211.7 kB / 0.7773 GB, free: 8.984 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 3.334e-05/0.5089, allocations: 29.7 kB / 0.7774 GB, free: 8.949 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001134/0.509, allocations: 167.7 kB / 0.7775 GB, free: 8.781 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 2.534e-05/0.509, allocations: 31.55 kB / 0.7775 GB, free: 8.75 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.798e-05/0.5091, allocations: 37.62 kB / 0.7776 GB, free: 8.707 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001299/0.5093, allocations: 330.8 kB / 0.7779 GB, free: 8.375 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001003/0.5094, allocations: 43.97 kB / 0.7779 GB, free: 8.332 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001452/0.5095, allocations: 112.6 kB / 0.778 GB, free: 8.191 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002591/0.5098, allocations: 172.4 kB / 0.7782 GB, free: 7.992 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.315e-06/0.5098, allocations: 0 / 0.7782 GB, free: 7.992 MB / 0.545 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003771/0.5102, allocations: 206.1 kB / 0.7784 GB, free: 7.781 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.818e-05/0.5102, allocations: 10.5 kB / 0.7784 GB, free: 7.773 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.444e-06/0.5102, allocations: 4 kB / 0.7784 GB, free: 7.77 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001729/0.5104, allocations: 24.84 kB / 0.7784 GB, free: 7.742 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001444/0.5106, allocations: 40.14 kB / 0.7785 GB, free: 7.703 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001114/0.5117, allocations: 1.437 MB / 0.7799 GB, free: 6.121 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001477/0.5118, allocations: 23.72 kB / 0.7799 GB, free: 6.098 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.716e-05/0.5119, allocations: 12 kB / 0.7799 GB, free: 6.086 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (18): * Single equations (assignments): 17 * 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 {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001419/0.512, allocations: 150.3 kB / 0.7801 GB, free: 5.93 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.433e-05/0.5121, allocations: 15.81 kB / 0.7801 GB, free: 5.914 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.381e-05/0.5121, allocations: 17.41 kB / 0.7801 GB, free: 5.898 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.453e-06/0.5121, allocations: 0 / 0.7801 GB, free: 5.898 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.527e-06/0.5121, allocations: 4.062 kB / 0.7801 GB, free: 5.895 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.89e-06/0.5121, allocations: 3.984 kB / 0.7801 GB, free: 5.891 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006129/0.5128, allocations: 487.1 kB / 0.7806 GB, free: 5.355 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.5128, allocations: 0 / 0.7806 GB, free: 5.355 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.723e-05/0.5128, allocations: 8 kB / 0.7806 GB, free: 5.348 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.079e-05/0.5129, allocations: 32.77 kB / 0.7806 GB, free: 5.312 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.019e-05/0.513, allocations: 8 kB / 0.7806 GB, free: 5.305 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001015/0.514, allocations: 1.421 MB / 0.782 GB, free: 3.746 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/0.514, allocations: 3.938 kB / 0.782 GB, free: 3.742 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003018/0.5143, allocations: 236.6 kB / 0.7822 GB, free: 3.492 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 7.338e-05/0.5144, allocations: 100.9 kB / 0.7823 GB, free: 3.375 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.44e-05/0.5144, allocations: 3.984 kB / 0.7823 GB, free: 3.371 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001297/0.5146, allocations: 12.06 kB / 0.7823 GB, free: 3.359 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.879e-05/0.5146, allocations: 7.984 kB / 0.7823 GB, free: 3.352 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.318e-06/0.5146, allocations: 4 kB / 0.7824 GB, free: 3.348 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0001372/0.5148, allocations: 150.1 kB / 0.7825 GB, free: 3.203 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5148, allocations: 0 / 0.7825 GB, free: 3.203 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0003536/0.5151, allocations: 59.78 kB / 0.7826 GB, free: 3.145 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (7): * Single equations (assignments): 6 * 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 {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001301/0.5153, allocations: 103.2 kB / 0.7827 GB, free: 3.031 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0004546/0.5157, allocations: 238.5 kB / 0.7829 GB, free: 2.785 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.5157, allocations: 0 / 0.7829 GB, free: 2.785 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0002083/0.516, allocations: 162.7 kB / 0.783 GB, free: 2.613 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004035/0.5164, allocations: 38.05 kB / 0.7831 GB, free: 2.578 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007369/0.5171, allocations: 421.5 kB / 0.7835 GB, free: 2.137 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000357/0.5175, allocations: 0.7671 MB / 0.7842 GB, free: 1.344 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.556e-05/0.5175, allocations: 19.44 kB / 0.7842 GB, free: 1.324 MB / 0.545 GB Notification: Performance of SimCode: time 4.71e-07/0.5175, allocations: 0 / 0.7842 GB, free: 1.324 MB / 0.545 GB Notification: Performance of Templates: time 0.005878/0.5234, allocations: 3.228 MB / 0.7874 GB, free: 14.11 MB / 0.5606 GB make -j1 -f BuildingSystems_BuildingSystems.Electrical.DC.Sources.Examples.VoltageSource.makefile (rm -f BuildingSystems_BuildingSystems.Electrical.DC.Sources.Examples.VoltageSource.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.DC.Sources.Examples.VoltageSource.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.DC.Sources.Examples.VoltageSource.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.DC.Sources.Examples.VoltageSource.sim & ./BuildingSystems_BuildingSystems.Electrical.DC.Sources.Examples.VoltageSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.DC.Sources.Examples.VoltageSource.pipe 2>&1)