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.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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(Buildings.Electrical.DC.Lines.Examples.Resistance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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=5000,variableFilter="time|sen.I",fileNamePrefix="Buildings_latest_Buildings.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.001296/0.001296, allocations: 111.3 kB / 15.23 MB, free: 0.6562 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.001467/0.001467, allocations: 194.1 kB / 16.13 MB, free: 6.656 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: 222.9 MB / 239.8 MB, free: 4.594 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.936/2.936, allocations: 472.6 MB / 0.7447 GB, free: 4.918 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001261/0.001261, allocations: 62.2 kB / 0.9114 GB, free: 33.61 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3153/0.3166, allocations: 159.9 MB / 1.068 GB, free: 10.88 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.Resistance): time 0.004809/0.3214, allocations: 3.12 MB / 1.071 GB, free: 7.738 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001948/0.3234, allocations: 1.332 MB / 1.072 GB, free: 6.398 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001112/0.3235, allocations: 4 kB / 1.072 GB, free: 6.395 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0009443/0.3245, allocations: 315 kB / 1.072 GB, free: 6.086 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0003127/0.3248, allocations: 135.4 kB / 1.072 GB, free: 5.953 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003248/0.3251, allocations: 131.1 kB / 1.072 GB, free: 5.828 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0004146/0.3256, allocations: 438.7 kB / 1.073 GB, free: 5.398 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003076/0.3259, allocations: 156.3 kB / 1.073 GB, free: 5.246 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00012/0.326, allocations: 107.6 kB / 1.073 GB, free: 5.141 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002589/0.3263, allocations: 139.5 kB / 1.073 GB, free: 5.004 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.276e-05/0.3263, allocations: 16 kB / 1.073 GB, free: 4.988 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000314/0.3266, allocations: 207.6 kB / 1.073 GB, free: 4.785 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 8.9e-05/0.3267, allocations: 75.8 kB / 1.074 GB, free: 4.711 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001272/0.3269, allocations: 107.5 kB / 1.074 GB, free: 4.605 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0003713/0.3272, allocations: 343.1 kB / 1.074 GB, free: 4.27 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.3273, allocations: 4 kB / 1.074 GB, free: 4.266 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.052e-06/0.3273, allocations: 0 / 1.074 GB, free: 4.266 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.771e-06/0.3273, allocations: 0 / 1.074 GB, free: 4.266 MB / 0.8262 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.0008174/0.3281, allocations: 0.5108 MB / 1.074 GB, free: 3.703 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.543e-05/0.3281, allocations: 15.95 kB / 1.074 GB, free: 3.688 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005766/0.3287, allocations: 76.59 kB / 1.075 GB, free: 3.613 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002731/0.329, allocations: 240 kB / 1.075 GB, free: 3.34 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.829e-05/0.329, allocations: 16.75 kB / 1.075 GB, free: 3.324 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.983e-05/0.3291, allocations: 16.38 kB / 1.075 GB, free: 3.309 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004535/0.3295, allocations: 307.2 kB / 1.075 GB, free: 2.984 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.114e-05/0.3296, allocations: 0 / 1.075 GB, free: 2.984 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.721e-05/0.3296, allocations: 16 kB / 1.075 GB, free: 2.969 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.348e-05/0.3296, allocations: 16.36 kB / 1.075 GB, free: 2.953 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003124/0.3299, allocations: 196.9 kB / 1.075 GB, free: 2.762 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001434/0.3314, allocations: 1.468 MB / 1.077 GB, free: 1.129 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002439/0.3316, allocations: 171.7 kB / 1.077 GB, free: 0.9336 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.93e-05/0.3317, allocations: 32.84 kB / 1.077 GB, free: 0.8984 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 9.138e-06/0.3317, allocations: 0 / 1.077 GB, free: 0.8984 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.746e-05/0.3318, allocations: 34.56 kB / 1.077 GB, free: 0.8555 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=7): time 3.216e-06/0.3318, allocations: 8.031 kB / 1.077 GB, free: 0.8477 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7): time 0.0004672/0.3322, allocations: 223.4 kB / 1.077 GB, free: 0.6016 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.264e-05/0.3323, allocations: 55.41 kB / 1.077 GB, free: 0.5352 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001865/0.3325, allocations: 206.7 kB / 1.077 GB, free: 332 kB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.583e-05/0.3325, allocations: 29.7 kB / 1.077 GB, free: 296 kB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 9.883e-05/0.3326, allocations: 159.6 kB / 1.078 GB, free: 132 kB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.05e-05/0.3326, allocations: 27.84 kB / 1.078 GB, free: 104 kB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.637e-05/0.3327, allocations: 37.7 kB / 1.078 GB, free: 60 kB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.000117/0.3328, allocations: 330.8 kB / 1.078 GB, free: 15.73 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.401e-05/0.3329, allocations: 35.98 kB / 1.078 GB, free: 15.69 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.359e-05/0.333, allocations: 97.97 kB / 1.078 GB, free: 15.57 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001604/0.3332, allocations: 148.5 kB / 1.078 GB, free: 15.39 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.717e-06/0.3332, allocations: 4 kB / 1.078 GB, free: 15.39 MB / 0.8419 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002973/0.3335, allocations: 190 kB / 1.078 GB, free: 15.19 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.558e-05/0.3335, allocations: 7.984 kB / 1.078 GB, free: 15.18 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.352e-06/0.3335, allocations: 8.281 kB / 1.078 GB, free: 15.18 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001429/0.3337, allocations: 24.84 kB / 1.079 GB, free: 15.15 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001096/0.3338, allocations: 27.94 kB / 1.079 GB, free: 15.12 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009363/0.3347, allocations: 1.323 MB / 1.08 GB, free: 13.66 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001282/0.3349, allocations: 11.84 kB / 1.08 GB, free: 13.64 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.148e-05/0.3349, allocations: 8 kB / 1.08 GB, free: 13.64 MB / 0.8419 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.0001207/0.335, allocations: 146.3 kB / 1.08 GB, free: 13.48 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.214e-05/0.3351, allocations: 23.73 kB / 1.08 GB, free: 13.46 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.819e-05/0.3351, allocations: 21.5 kB / 1.08 GB, free: 13.45 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.723e-06/0.3351, allocations: 0 / 1.08 GB, free: 13.45 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.655e-06/0.3351, allocations: 0 / 1.08 GB, free: 13.45 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.174e-06/0.3351, allocations: 0 / 1.08 GB, free: 13.45 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004785/0.3356, allocations: 447.2 kB / 1.08 GB, free: 12.95 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.3356, allocations: 0 / 1.08 GB, free: 12.95 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.128e-05/0.3356, allocations: 8 kB / 1.08 GB, free: 12.94 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.765e-05/0.3357, allocations: 24.84 kB / 1.08 GB, free: 12.91 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.075e-06/0.3358, allocations: 0 / 1.08 GB, free: 12.91 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008514/0.3366, allocations: 1.331 MB / 1.082 GB, free: 11.45 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/0.3366, allocations: 3.938 kB / 1.082 GB, free: 11.45 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00021/0.3368, allocations: 208.2 kB / 1.082 GB, free: 11.23 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 6.321e-05/0.3369, allocations: 92.92 kB / 1.082 GB, free: 11.12 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.24e-05/0.3369, allocations: 11.92 kB / 1.082 GB, free: 11.11 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001133/0.3371, allocations: 4 kB / 1.082 GB, free: 11.1 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.164e-05/0.3371, allocations: 4 kB / 1.082 GB, free: 11.1 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.755e-06/0.3371, allocations: 11.94 kB / 1.082 GB, free: 11.09 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001215/0.3372, allocations: 148.9 kB / 1.082 GB, free: 10.94 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3372, allocations: 0 / 1.082 GB, free: 10.94 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003237/0.3376, allocations: 51.84 kB / 1.082 GB, free: 10.89 MB / 0.8419 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.806e-05/0.3377, allocations: 99.23 kB / 1.082 GB, free: 10.78 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0003414/0.338, allocations: 210.7 kB / 1.083 GB, free: 10.56 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.338, allocations: 0 / 1.083 GB, free: 10.56 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001453/0.3382, allocations: 142.7 kB / 1.083 GB, free: 10.41 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003654/0.3386, allocations: 39.03 kB / 1.083 GB, free: 10.38 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006226/0.3392, allocations: 430.5 kB / 1.083 GB, free: 9.93 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002806/0.3395, allocations: 0.7439 MB / 1.084 GB, free: 9.16 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 9.964e-05/0.3396, allocations: 33.52 kB / 1.084 GB, free: 9.129 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.07e-05/0.3396, allocations: 11.44 kB / 1.084 GB, free: 9.117 MB / 0.8419 GB Notification: Performance of SimCode: time 3.41e-07/0.3396, allocations: 3.938 kB / 1.084 GB, free: 9.113 MB / 0.8419 GB Notification: Performance of Templates: time 0.004371/0.344, allocations: 1.684 MB / 1.086 GB, free: 7.453 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.makefile (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=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_DC_Lines_Examples_Resistance.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches