Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.Resistance.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.Lines.Examples.Resistance,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.Resistance") translateModel(BuildingSystems.Electrical.DC.Lines.Examples.Resistance,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.Resistance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0017/0.0017, allocations: 108.8 kB / 16.41 MB, free: 6.449 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.001944/0.001944, allocations: 189.2 kB / 17.34 MB, free: 5.703 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.424/1.424, allocations: 222.9 MB / 241 MB, free: 15.05 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002722/0.002722, allocations: 281.9 kB / 291.5 MB, free: 14.42 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.021/1.021, allocations: 169.3 MB / 0.499 GB, free: 4.406 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002776/0.002776, allocations: 91.84 kB / 0.6821 GB, free: 6.992 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5113/0.5141, allocations: 86.97 MB / 0.767 GB, free: 4.105 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Lines.Examples.Resistance): time 0.00515/0.5193, allocations: 3.079 MB / 0.77 GB, free: 1.016 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.002405/0.5217, allocations: 1.324 MB / 0.7713 GB, free: 15.68 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001389/0.5218, allocations: 8 kB / 0.7713 GB, free: 15.68 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.001112/0.5229, allocations: 334.7 kB / 0.7717 GB, free: 15.35 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0003754/0.5233, allocations: 139.3 kB / 0.7718 GB, free: 15.21 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003741/0.5237, allocations: 131.6 kB / 0.7719 GB, free: 15.08 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0004163/0.5241, allocations: 318.7 kB / 0.7722 GB, free: 14.77 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004219/0.5245, allocations: 192.2 kB / 0.7724 GB, free: 14.59 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000179/0.5247, allocations: 127.5 kB / 0.7725 GB, free: 14.46 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003275/0.525, allocations: 147.5 kB / 0.7727 GB, free: 14.32 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 3.607e-05/0.5251, allocations: 16 kB / 0.7727 GB, free: 14.3 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003042/0.5254, allocations: 159.7 kB / 0.7728 GB, free: 14.14 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0001136/0.5255, allocations: 83.78 kB / 0.7729 GB, free: 14.06 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0001293/0.5256, allocations: 111.5 kB / 0.773 GB, free: 13.95 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0005144/0.5261, allocations: 340.9 kB / 0.7733 GB, free: 13.62 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 8.847e-06/0.5261, allocations: 4 kB / 0.7733 GB, free: 13.62 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.643e-06/0.5261, allocations: 0 / 0.7733 GB, free: 13.62 MB / 0.545 GB Notification: Performance of Transformations before backend: time 7.054e-06/0.5261, allocations: 0 / 0.7733 GB, free: 13.62 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: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0009491/0.5271, allocations: 0.5182 MB / 0.7739 GB, free: 13.05 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.203e-05/0.5271, allocations: 8.031 kB / 0.7739 GB, free: 13.04 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006033/0.5277, allocations: 80.72 kB / 0.7739 GB, free: 12.96 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003791/0.5281, allocations: 244 kB / 0.7742 GB, free: 12.68 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.088e-05/0.5281, allocations: 24.62 kB / 0.7742 GB, free: 12.66 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.699e-05/0.5282, allocations: 20.38 kB / 0.7742 GB, free: 12.64 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004988/0.5287, allocations: 295.5 kB / 0.7745 GB, free: 12.33 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.363e-05/0.5287, allocations: 4 kB / 0.7745 GB, free: 12.33 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.994e-05/0.5287, allocations: 12 kB / 0.7745 GB, free: 12.32 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.974e-05/0.5288, allocations: 20.3 kB / 0.7745 GB, free: 12.3 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003431/0.5291, allocations: 200.9 kB / 0.7747 GB, free: 12.1 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001683/0.5308, allocations: 1.456 MB / 0.7761 GB, free: 10.48 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002921/0.5311, allocations: 171.7 kB / 0.7763 GB, free: 10.29 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.332e-05/0.5311, allocations: 32.84 kB / 0.7763 GB, free: 10.25 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 1.366e-05/0.5311, allocations: 0 / 0.7763 GB, free: 10.25 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.197e-05/0.5312, allocations: 38.5 kB / 0.7764 GB, free: 10.2 MB / 0.545 GB Notification: Performance of pre-optimization done (n=7): time 1.303e-06/0.5312, allocations: 0 / 0.7764 GB, free: 10.2 MB / 0.545 GB Notification: Performance of matching and sorting (n=7): time 0.0005949/0.5318, allocations: 231.4 kB / 0.7766 GB, free: 9.949 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.801e-05/0.5318, allocations: 51.41 kB / 0.7766 GB, free: 9.887 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002134/0.532, allocations: 190.5 kB / 0.7768 GB, free: 9.691 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 3.646e-05/0.5321, allocations: 29.7 kB / 0.7769 GB, free: 9.656 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001288/0.5322, allocations: 171.9 kB / 0.777 GB, free: 9.484 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 2.63e-05/0.5322, allocations: 27.94 kB / 0.777 GB, free: 9.457 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.289e-05/0.5323, allocations: 37.67 kB / 0.7771 GB, free: 9.414 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.000166/0.5325, allocations: 326.8 kB / 0.7774 GB, free: 9.086 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.177e-05/0.5326, allocations: 39.91 kB / 0.7774 GB, free: 9.047 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001262/0.5327, allocations: 100.5 kB / 0.7775 GB, free: 8.918 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002031/0.5329, allocations: 148.4 kB / 0.7777 GB, free: 8.742 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.5329, allocations: 0 / 0.7777 GB, free: 8.742 MB / 0.545 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003225/0.5332, allocations: 190.3 kB / 0.7778 GB, free: 8.547 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 2.007e-05/0.5332, allocations: 14.38 kB / 0.7779 GB, free: 8.535 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.03e-06/0.5332, allocations: 0 / 0.7779 GB, free: 8.535 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001801/0.5334, allocations: 28.84 kB / 0.7779 GB, free: 8.504 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001113/0.5335, allocations: 27.92 kB / 0.7779 GB, free: 8.477 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00129/0.5348, allocations: 1.422 MB / 0.7793 GB, free: 6.914 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000118/0.5349, allocations: 15.92 kB / 0.7793 GB, free: 6.898 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.059e-05/0.5349, allocations: 4 kB / 0.7793 GB, free: 6.895 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 (17): * Single equations (assignments): 16 * 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.0001664/0.5351, allocations: 164.2 kB / 0.7795 GB, free: 6.727 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.128e-05/0.5351, allocations: 15.91 kB / 0.7795 GB, free: 6.711 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.68e-05/0.5352, allocations: 17.41 kB / 0.7795 GB, free: 6.691 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.283e-06/0.5352, allocations: 0 / 0.7795 GB, free: 6.691 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.5352, allocations: 4 kB / 0.7795 GB, free: 6.688 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.568e-06/0.5352, allocations: 3.984 kB / 0.7795 GB, free: 6.684 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005839/0.5358, allocations: 443.5 kB / 0.7799 GB, free: 6.191 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.562e-06/0.5358, allocations: 0 / 0.7799 GB, free: 6.191 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.207e-05/0.5358, allocations: 16.05 kB / 0.78 GB, free: 6.176 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001009/0.5359, allocations: 24.84 kB / 0.78 GB, free: 6.148 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.455e-06/0.5359, allocations: 0 / 0.78 GB, free: 6.148 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001246/0.5372, allocations: 1.414 MB / 0.7814 GB, free: 4.594 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.71e-07/0.5372, allocations: 0 / 0.7814 GB, free: 4.594 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002591/0.5374, allocations: 220.2 kB / 0.7816 GB, free: 4.359 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001118/0.5376, allocations: 101 kB / 0.7817 GB, free: 4.242 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.713e-05/0.5376, allocations: 0 / 0.7817 GB, free: 4.242 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001126/0.5377, allocations: 11.98 kB / 0.7817 GB, free: 4.23 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.239e-05/0.5377, allocations: 0 / 0.7817 GB, free: 4.23 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.957e-06/0.5377, allocations: 4 kB / 0.7817 GB, free: 4.227 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0001476/0.5379, allocations: 146.7 kB / 0.7818 GB, free: 4.086 MB / 0.545 GB Notification: Performance of sort global known variables: time 9.1e-08/0.5379, allocations: 0 / 0.7818 GB, free: 4.086 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.000338/0.5382, allocations: 55.89 kB / 0.7819 GB, free: 4.031 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 (6): * Single equations (assignments): 5 * 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.0001432/0.5383, allocations: 99.25 kB / 0.782 GB, free: 3.922 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.000417/0.5388, allocations: 210.4 kB / 0.7822 GB, free: 3.703 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.5388, allocations: 0 / 0.7822 GB, free: 3.703 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0001673/0.5389, allocations: 143.2 kB / 0.7823 GB, free: 3.551 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003912/0.5393, allocations: 46.06 kB / 0.7824 GB, free: 3.508 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007136/0.54, allocations: 354.3 kB / 0.7827 GB, free: 3.137 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004672/0.5405, allocations: 0.7514 MB / 0.7834 GB, free: 2.359 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 8.467e-05/0.5406, allocations: 21.53 kB / 0.7834 GB, free: 2.34 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.178e-05/0.5406, allocations: 15.44 kB / 0.7835 GB, free: 2.324 MB / 0.545 GB Notification: Performance of SimCode: time 4.41e-07/0.5406, allocations: 0 / 0.7835 GB, free: 2.324 MB / 0.545 GB Notification: Performance of Templates: time 0.00553/0.5461, allocations: 1.796 MB / 0.7852 GB, free: 0.5586 MB / 0.545 GB make -j1 -f BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.Resistance.makefile (rm -f BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.Resistance.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.Resistance.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.Resistance.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.Resistance.sim & ./BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.Resistance -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.Resistance.pipe 2>&1)