Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel.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/Buildings 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/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(Buildings.Electrical.DC.Lines.Examples.RCModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen_ss.I|sen_dyn.I|RC_ss.Vc|RC_dyn.Vc",fileNamePrefix="Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel") translateModel(Buildings.Electrical.DC.Lines.Examples.RCModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen_ss.I|sen_dyn.I|RC_ss.Vc|RC_dyn.Vc",fileNamePrefix="Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008986/0.0008988, allocations: 98.88 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001124/0.001124, allocations: 183.3 kB / 16.92 MB, free: 6.773 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.434/1.434, allocations: 223.3 MB / 241 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.392/2.392, allocations: 390.9 MB / 0.667 GB, free: 2.375 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.000578/0.0005781, allocations: 8 kB / 0.8166 GB, free: 13.24 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7255/0.7261, allocations: 142.4 MB / 0.9557 GB, free: 7.719 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.RCModel): time 0.004443/0.7306, allocations: 4.003 MB / 0.9596 GB, free: 4.637 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002936/0.7336, allocations: 1.835 MB / 0.9614 GB, free: 3.184 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000303/0.7339, allocations: 9.438 kB / 0.9614 GB, free: 3.18 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0002728/0.7342, allocations: 70.47 kB / 0.9615 GB, free: 3.121 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0006837/0.7349, allocations: 245.7 kB / 0.9617 GB, free: 2.93 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006273/0.7355, allocations: 233.3 kB / 0.9619 GB, free: 2.758 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0008999/0.7364, allocations: 0.8331 MB / 0.9628 GB, free: 2.309 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005192/0.7369, allocations: 439.3 kB / 0.9632 GB, free: 1.992 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002901/0.7372, allocations: 200.4 kB / 0.9634 GB, free: 1.891 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004723/0.7377, allocations: 257 kB / 0.9636 GB, free: 1.746 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 5.237e-05/0.7378, allocations: 20.06 kB / 0.9636 GB, free: 1.746 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005719/0.7384, allocations: 315 kB / 0.9639 GB, free: 1.574 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001323/0.7385, allocations: 125 kB / 0.964 GB, free: 1.5 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001967/0.7387, allocations: 228.9 kB / 0.9643 GB, free: 1.34 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0005057/0.7392, allocations: 471.6 kB / 0.9647 GB, free: 1.039 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.7392, allocations: 0 / 0.9647 GB, free: 1.039 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.553e-06/0.7392, allocations: 0 / 0.9647 GB, free: 1.039 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.574e-06/0.7393, allocations: 0 / 0.9647 GB, free: 1.039 MB / 0.7169 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 91 * Number of variables: 91 Notification: Performance of Generate backend data structure: time 0.001028/0.7403, allocations: 0.6582 MB / 0.9654 GB, free: 484 kB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.357e-05/0.7404, allocations: 7.062 kB / 0.9654 GB, free: 484 kB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009845/0.7413, allocations: 150.5 kB / 0.9655 GB, free: 420 kB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004115/0.7418, allocations: 337.5 kB / 0.9658 GB, free: 100 kB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.894e-05/0.7418, allocations: 22.97 kB / 0.9658 GB, free: 88 kB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.029e-05/0.7419, allocations: 37.64 kB / 0.9659 GB, free: 72 kB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009047/0.7428, allocations: 0.5323 MB / 0.9664 GB, free: 15.71 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.529e-05/0.7428, allocations: 0 / 0.9664 GB, free: 15.71 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.91e-05/0.7429, allocations: 21.31 kB / 0.9664 GB, free: 15.7 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.19e-05/0.7429, allocations: 31.83 kB / 0.9665 GB, free: 15.69 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006691/0.7436, allocations: 393.5 kB / 0.9668 GB, free: 15.5 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002958/0.7466, allocations: 2.406 MB / 0.9692 GB, free: 13.23 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005689/0.7472, allocations: 266.8 kB / 0.9694 GB, free: 13.09 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002085/0.7474, allocations: 112.5 kB / 0.9695 GB, free: 13.03 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.517e-05/0.7474, allocations: 6.062 kB / 0.9695 GB, free: 13.02 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.573e-05/0.7475, allocations: 36.5 kB / 0.9696 GB, free: 12.98 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=20): time 2.375e-06/0.7475, allocations: 0 / 0.9696 GB, free: 12.98 MB / 0.7325 GB Notification: Performance of matching and sorting (n=23): time 0.002474/0.75, allocations: 1.126 MB / 0.9707 GB, free: 12.13 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.424e-05/0.75, allocations: 58.08 kB / 0.9707 GB, free: 12.07 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003694/0.7504, allocations: 299.8 kB / 0.971 GB, free: 11.86 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.833e-05/0.7504, allocations: 31.02 kB / 0.9711 GB, free: 11.82 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001572/0.7506, allocations: 233.4 kB / 0.9713 GB, free: 11.61 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 7.768e-05/0.7507, allocations: 81.08 kB / 0.9714 GB, free: 11.54 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.31e-05/0.7508, allocations: 34.64 kB / 0.9714 GB, free: 11.51 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001404/0.7509, allocations: 341.8 kB / 0.9717 GB, free: 11.18 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001805/0.7511, allocations: 105.6 kB / 0.9718 GB, free: 11.12 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002293/0.7513, allocations: 187.7 kB / 0.972 GB, free: 10.96 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004371/0.7518, allocations: 321.1 kB / 0.9723 GB, free: 10.73 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.784e-06/0.7518, allocations: 1.062 kB / 0.9723 GB, free: 10.73 MB / 0.7325 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008413/0.7526, allocations: 447.5 kB / 0.9727 GB, free: 10.48 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.159e-05/0.7527, allocations: 6.844 kB / 0.9727 GB, free: 10.48 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.237e-06/0.7527, allocations: 2 kB / 0.9727 GB, free: 10.48 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003849/0.7531, allocations: 100.2 kB / 0.9728 GB, free: 10.42 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003057/0.7534, allocations: 68.23 kB / 0.9729 GB, free: 10.4 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00337/0.7568, allocations: 4.082 MB / 0.9769 GB, free: 6.23 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000313/0.7571, allocations: 7.938 kB / 0.9769 GB, free: 6.227 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.444e-05/0.7571, allocations: 10.16 kB / 0.9769 GB, free: 6.227 MB / 0.7325 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (34): * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,1,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002783/0.7574, allocations: 187.4 kB / 0.9771 GB, free: 6.062 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.302e-05/0.7575, allocations: 30.47 kB / 0.9771 GB, free: 6.047 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.839e-05/0.7576, allocations: 42.47 kB / 0.9771 GB, free: 6.012 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.177e-06/0.7576, allocations: 2.031 kB / 0.9771 GB, free: 6.012 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.367e-06/0.7576, allocations: 6.062 kB / 0.9772 GB, free: 6.008 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.679e-06/0.7576, allocations: 3.984 kB / 0.9772 GB, free: 6.004 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005363/0.7582, allocations: 401.5 kB / 0.9775 GB, free: 5.664 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.7582, allocations: 0 / 0.9775 GB, free: 5.664 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001959/0.7584, allocations: 30.83 kB / 0.9776 GB, free: 5.66 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003309/0.7587, allocations: 90.88 kB / 0.9777 GB, free: 5.602 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.032e-05/0.7587, allocations: 9.938 kB / 0.9777 GB, free: 5.594 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003195/0.7619, allocations: 4.071 MB / 0.9816 GB, free: 1.438 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.856e-06/0.762, allocations: 1 kB / 0.9816 GB, free: 1.438 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009459/0.7629, allocations: 0.554 MB / 0.9822 GB, free: 1.066 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001773/0.7631, allocations: 126 kB / 0.9823 GB, free: 0.9414 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.938e-05/0.7632, allocations: 4 kB / 0.9823 GB, free: 0.9375 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002224/0.7634, allocations: 19.89 kB / 0.9823 GB, free: 0.9258 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.51e-05/0.7635, allocations: 20.03 kB / 0.9823 GB, free: 0.9141 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.413e-05/0.7635, allocations: 9.062 kB / 0.9824 GB, free: 0.9102 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0002476/0.7638, allocations: 206.1 kB / 0.9826 GB, free: 0.7734 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7638, allocations: 0 / 0.9826 GB, free: 0.7734 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0005769/0.7643, allocations: 98.97 kB / 0.9826 GB, free: 0.7617 MB / 0.7325 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (RC_dyn.Vc) * 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 (18): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,1,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001515/0.7645, allocations: 108.3 kB / 0.9827 GB, free: 0.6602 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0009098/0.7654, allocations: 0.6065 MB / 0.9833 GB, free: 188 kB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.7654, allocations: 0 / 0.9833 GB, free: 188 kB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0005517/0.766, allocations: 477.7 kB / 0.9838 GB, free: 15.77 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005606/0.7666, allocations: 86.23 kB / 0.9839 GB, free: 15.72 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001499/0.7681, allocations: 0.9307 MB / 0.9848 GB, free: 15.02 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004831/0.7686, allocations: 0.8349 MB / 0.9856 GB, free: 14.25 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.677e-05/0.7687, allocations: 25 kB / 0.9856 GB, free: 14.24 MB / 0.7481 GB Notification: Performance of SimCode: time 1.293e-06/0.7687, allocations: 0 / 0.9856 GB, free: 14.24 MB / 0.7481 GB Notification: Performance of Templates: time 0.01206/0.7807, allocations: 8.625 MB / 0.9941 GB, free: 6.383 MB / 0.7481 GB make -j1 -f Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel.makefile (rm -f Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel.sim & ./Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_DC_Lines_Examples_RCModel.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches