Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001328/0.001328, allocations: 92.22 kB / 19.65 MB, free: 280 kB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001463/0.001463, allocations: 173 kB / 23.02 MB, free: 1.551 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9183/0.9183, allocations: 177.1 MB / 203.4 MB, free: 5.652 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.045/2.045, allocations: 429.5 MB / 0.6732 GB, free: 4.035 MB / 0.6355 GB " [Timeout remaining time 177] Using package Buildings with version 14.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Electrical.DC.Lines.Examples.Resistance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|sen.I",fileNamePrefix="Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance") translateModel(Buildings.Electrical.DC.Lines.Examples.Resistance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|sen.I",fileNamePrefix="Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.724e-06/1.724e-06, allocations: 0 / 0.8781 GB, free: 6.348 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.513e-05/2.685e-05, allocations: 3.297 kB / 0.8781 GB, free: 6.344 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.Resistance): time 0.003346/0.003373, allocations: 2.581 MB / 0.8807 GB, free: 3.773 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.001385/0.004758, allocations: 0.9858 MB / 0.8816 GB, free: 2.785 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001167/0.004875, allocations: 8.469 kB / 0.8816 GB, free: 2.777 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 0.0004671/0.005342, allocations: 92.05 kB / 0.8817 GB, free: 2.688 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 0.0002913/0.005633, allocations: 144.2 kB / 0.8819 GB, free: 2.547 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.00024/0.005873, allocations: 113.2 kB / 0.882 GB, free: 2.438 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0003263/0.006199, allocations: 318.9 kB / 0.8823 GB, free: 2.125 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003408/0.00654, allocations: 173.7 kB / 0.8824 GB, free: 1.953 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001793/0.006719, allocations: 179.6 kB / 0.8826 GB, free: 1.777 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002592/0.006979, allocations: 127.6 kB / 0.8827 GB, free: 1.652 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 2.787e-05/0.007007, allocations: 25.47 kB / 0.8828 GB, free: 1.629 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001583/0.007165, allocations: 87.8 kB / 0.8828 GB, free: 1.543 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 7.689e-05/0.007242, allocations: 91.73 kB / 0.8829 GB, free: 1.453 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 7.138e-05/0.007313, allocations: 79.83 kB / 0.883 GB, free: 1.375 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0002925/0.007606, allocations: 228.2 kB / 0.8832 GB, free: 1.152 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 4.618e-06/0.00761, allocations: 3.984 kB / 0.8832 GB, free: 1.148 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.412e-06/0.007612, allocations: 0.6875 kB / 0.8832 GB, free: 1.148 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 5.501e-06/0.007617, allocations: 0 / 0.8832 GB, free: 1.148 MB / 0.8386 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.0006245/0.008242, allocations: 0.5391 MB / 0.8837 GB, free: 0.5742 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.76e-05/0.008279, allocations: 8.031 kB / 0.8838 GB, free: 0.5664 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004137/0.008693, allocations: 120.6 kB / 0.8839 GB, free: 460 kB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002326/0.008926, allocations: 189.1 kB / 0.884 GB, free: 244 kB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.574e-05/0.008941, allocations: 16.75 kB / 0.8841 GB, free: 228 kB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.407e-05/0.008965, allocations: 20.38 kB / 0.8841 GB, free: 208 kB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003013/0.009267, allocations: 294.4 kB / 0.8844 GB, free: 15.87 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.227e-05/0.009279, allocations: 8.109 kB / 0.8844 GB, free: 15.86 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.982e-05/0.009299, allocations: 12.38 kB / 0.8844 GB, free: 15.85 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.298e-05/0.009332, allocations: 20.3 kB / 0.8844 GB, free: 15.83 MB / 0.8542 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001317/0.009464, allocations: 81.02 kB / 0.8845 GB, free: 15.75 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009064/0.01037, allocations: 1.236 MB / 0.8857 GB, free: 14.45 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001695/0.01054, allocations: 71.11 kB / 0.8858 GB, free: 14.37 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.485e-05/0.01057, allocations: 23.84 kB / 0.8858 GB, free: 14.34 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 8.276e-06/0.01058, allocations: 3.938 kB / 0.8858 GB, free: 14.34 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.508e-05/0.01061, allocations: 45.3 kB / 0.8858 GB, free: 14.29 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=7): time 2.595e-06/0.01061, allocations: 0 / 0.8858 GB, free: 14.29 MB / 0.8542 GB Notification: Performance of matching and sorting (n=7): time 0.0002966/0.01091, allocations: 113.3 kB / 0.8859 GB, free: 14.16 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.907e-05/0.01094, allocations: 55.41 kB / 0.886 GB, free: 14.1 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000145/0.01108, allocations: 246.4 kB / 0.8862 GB, free: 13.84 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 1.234e-05/0.01109, allocations: 25.7 kB / 0.8862 GB, free: 13.81 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 8.251e-05/0.01118, allocations: 210.7 kB / 0.8864 GB, free: 13.59 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 1.762e-05/0.01119, allocations: 27.78 kB / 0.8865 GB, free: 13.57 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.381e-05/0.01124, allocations: 43.33 kB / 0.8865 GB, free: 13.52 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0001141/0.01135, allocations: 0.4923 MB / 0.887 GB, free: 13.01 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.555e-05/0.01139, allocations: 19.98 kB / 0.887 GB, free: 12.99 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.598e-05/0.01145, allocations: 104.9 kB / 0.8871 GB, free: 12.85 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001069/0.01156, allocations: 140.7 kB / 0.8872 GB, free: 12.67 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.265e-06/0.01156, allocations: 0 / 0.8872 GB, free: 12.67 MB / 0.8542 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004082/0.01197, allocations: 172.9 kB / 0.8874 GB, free: 12.49 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 1.458e-05/0.01198, allocations: 4 kB / 0.8874 GB, free: 12.48 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.074e-06/0.01199, allocations: 4 kB / 0.8874 GB, free: 12.48 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001737/0.01217, allocations: 35.66 kB / 0.8875 GB, free: 12.44 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.638e-05/0.01223, allocations: 28.2 kB / 0.8875 GB, free: 12.41 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007616/0.01299, allocations: 1.752 MB / 0.8892 GB, free: 10.54 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.88e-05/0.01306, allocations: 15.89 kB / 0.8892 GB, free: 10.52 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.356e-06/0.01307, allocations: 8 kB / 0.8892 GB, free: 10.52 MB / 0.8542 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 8.021e-05/0.01315, allocations: 164.5 kB / 0.8894 GB, free: 10.34 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.191e-05/0.01317, allocations: 16.08 kB / 0.8894 GB, free: 10.33 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.037e-05/0.01319, allocations: 21.45 kB / 0.8894 GB, free: 10.3 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.884e-06/0.0132, allocations: 3.938 kB / 0.8894 GB, free: 10.3 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.625e-06/0.0132, allocations: 0 / 0.8894 GB, free: 10.3 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.126e-06/0.0132, allocations: 3.938 kB / 0.8894 GB, free: 10.3 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003028/0.0135, allocations: 389 kB / 0.8898 GB, free: 9.871 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.01351, allocations: 0 / 0.8898 GB, free: 9.871 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.387e-05/0.01353, allocations: 15.98 kB / 0.8898 GB, free: 9.855 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.435e-05/0.01362, allocations: 31.61 kB / 0.8898 GB, free: 9.82 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.265e-06/0.01363, allocations: 4 kB / 0.8898 GB, free: 9.816 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006459/0.01428, allocations: 1.736 MB / 0.8915 GB, free: 7.961 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.422e-06/0.01428, allocations: 0 / 0.8915 GB, free: 7.961 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001343/0.01441, allocations: 231.6 kB / 0.8918 GB, free: 7.711 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 2.922e-05/0.01444, allocations: 27.89 kB / 0.8918 GB, free: 7.684 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.796e-06/0.01445, allocations: 3.938 kB / 0.8918 GB, free: 7.68 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.573e-05/0.01451, allocations: 7.938 kB / 0.8918 GB, free: 7.672 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.04e-05/0.01453, allocations: 11.98 kB / 0.8918 GB, free: 7.66 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.318e-06/0.01453, allocations: 0 / 0.8918 GB, free: 7.66 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 7.524e-05/0.01461, allocations: 176.7 kB / 0.892 GB, free: 7.488 MB / 0.8542 GB Notification: Performance of sort global known variables: time 5e-08/0.01461, allocations: 0 / 0.892 GB, free: 7.488 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0002244/0.01483, allocations: 55.84 kB / 0.892 GB, free: 7.434 MB / 0.8542 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 9.173e-05/0.01492, allocations: 99.23 kB / 0.8921 GB, free: 7.328 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.000278/0.0152, allocations: 245.9 kB / 0.8924 GB, free: 7.066 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.0152, allocations: 0 / 0.8924 GB, free: 7.066 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.0001179/0.01532, allocations: 197.5 kB / 0.8925 GB, free: 6.852 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002521/0.01557, allocations: 40.78 kB / 0.8926 GB, free: 6.816 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007245/0.0163, allocations: 354.6 kB / 0.8929 GB, free: 6.438 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.354e-05/0.01635, allocations: 83.97 kB / 0.893 GB, free: 6.336 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 6.724e-05/0.01642, allocations: 25.47 kB / 0.893 GB, free: 6.312 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.033e-05/0.01645, allocations: 12.5 kB / 0.893 GB, free: 6.301 MB / 0.8542 GB Notification: Performance of SimCode: time 9.02e-07/0.01645, allocations: 0 / 0.893 GB, free: 6.301 MB / 0.8542 GB Notification: Performance of Templates: time 0.004073/0.02052, allocations: 1.751 MB / 0.8947 GB, free: 4.598 MB / 0.8542 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.sim & ./Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_DC_Lines_Examples_Resistance.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.09643552871421]