Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Electrical.DC.Loads.Examples.Resistor.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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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.Loads.Examples.Resistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.I|sen1.I",fileNamePrefix="Buildings_10_Buildings.Electrical.DC.Loads.Examples.Resistor") translateModel(Buildings.Electrical.DC.Loads.Examples.Resistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.I|sen1.I",fileNamePrefix="Buildings_10_Buildings.Electrical.DC.Loads.Examples.Resistor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001533/0.001533, allocations: 102.4 kB / 16.35 MB, free: 5.875 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.001784/0.001784, allocations: 191 kB / 17.29 MB, free: 5.516 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.436/1.436, allocations: 222.9 MB / 241 MB, free: 14.99 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.522/2.522, allocations: 437.1 MB / 0.7112 GB, free: 4.359 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001506/0.001506, allocations: 60.38 kB / 0.8707 GB, free: 1.469 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3111/0.3126, allocations: 151.6 MB / 1.019 GB, free: 9.879 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.Resistor): time 0.006124/0.3188, allocations: 3.847 MB / 1.023 GB, free: 6.012 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.002927/0.3218, allocations: 1.733 MB / 1.024 GB, free: 4.27 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002388/0.3221, allocations: 12 kB / 1.024 GB, free: 4.258 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.001516/0.3236, allocations: 0.4941 MB / 1.025 GB, free: 3.766 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.0005288/0.3241, allocations: 226.9 kB / 1.025 GB, free: 3.543 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005563/0.3247, allocations: 199.5 kB / 1.025 GB, free: 3.348 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0004885/0.3252, allocations: 470.4 kB / 1.026 GB, free: 2.887 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005508/0.3257, allocations: 377 kB / 1.026 GB, free: 2.516 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001953/0.3259, allocations: 187.4 kB / 1.026 GB, free: 2.332 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003612/0.3263, allocations: 211.2 kB / 1.026 GB, free: 2.125 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 4.217e-05/0.3264, allocations: 28 kB / 1.026 GB, free: 2.098 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004011/0.3268, allocations: 251.4 kB / 1.027 GB, free: 1.852 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0001322/0.3269, allocations: 127.7 kB / 1.027 GB, free: 1.727 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0001967/0.3271, allocations: 175.1 kB / 1.027 GB, free: 1.555 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0005379/0.3277, allocations: 0.4946 MB / 1.027 GB, free: 1.059 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 5.52e-06/0.3277, allocations: 0 / 1.027 GB, free: 1.059 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.473e-06/0.3277, allocations: 7.938 kB / 1.027 GB, free: 1.051 MB / 0.795 GB Notification: Performance of Transformations before backend: time 7.504e-06/0.3277, allocations: 0 / 1.027 GB, free: 1.051 MB / 0.795 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.0009601/0.3287, allocations: 0.6315 MB / 1.028 GB, free: 380 kB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.802e-05/0.3287, allocations: 8.922 kB / 1.028 GB, free: 372 kB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008819/0.3296, allocations: 136.4 kB / 1.028 GB, free: 236 kB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000441/0.3301, allocations: 295.6 kB / 1.028 GB, free: 15.9 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.306e-05/0.3301, allocations: 21.03 kB / 1.028 GB, free: 15.88 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.945e-05/0.3301, allocations: 24.38 kB / 1.028 GB, free: 15.86 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006249/0.3308, allocations: 467.9 kB / 1.029 GB, free: 15.36 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.169e-05/0.3308, allocations: 0 / 1.029 GB, free: 15.36 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.305e-05/0.3308, allocations: 12 kB / 1.029 GB, free: 15.35 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.653e-05/0.3309, allocations: 32.55 kB / 1.029 GB, free: 15.32 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004863/0.3314, allocations: 321.9 kB / 1.029 GB, free: 15.01 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002084/0.3335, allocations: 2.181 MB / 1.031 GB, free: 12.61 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003546/0.3338, allocations: 251.8 kB / 1.032 GB, free: 12.34 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002454/0.3341, allocations: 112.8 kB / 1.032 GB, free: 12.23 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.72e-05/0.3341, allocations: 7.938 kB / 1.032 GB, free: 12.22 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.889e-05/0.3341, allocations: 34.81 kB / 1.032 GB, free: 12.18 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=14): time 1.342e-06/0.3342, allocations: 0 / 1.032 GB, free: 12.18 MB / 0.8106 GB Notification: Performance of matching and sorting (n=14): time 0.0005963/0.3348, allocations: 299.2 kB / 1.032 GB, free: 11.86 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.46e-05/0.3348, allocations: 55.41 kB / 1.032 GB, free: 11.79 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002897/0.3351, allocations: 266.6 kB / 1.032 GB, free: 11.53 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.289e-05/0.3351, allocations: 33.7 kB / 1.032 GB, free: 11.49 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001212/0.3353, allocations: 199.8 kB / 1.033 GB, free: 11.29 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.924e-05/0.3353, allocations: 59.36 kB / 1.033 GB, free: 11.23 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.392e-05/0.3354, allocations: 45.8 kB / 1.033 GB, free: 11.18 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001302/0.3355, allocations: 342.8 kB / 1.033 GB, free: 10.83 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.288e-05/0.3356, allocations: 52.44 kB / 1.033 GB, free: 10.78 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001504/0.3358, allocations: 148 kB / 1.033 GB, free: 10.6 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002548/0.3361, allocations: 218.9 kB / 1.033 GB, free: 10.34 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.3361, allocations: 0 / 1.033 GB, free: 10.34 MB / 0.8106 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004095/0.3365, allocations: 276.7 kB / 1.034 GB, free: 10.07 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.73e-05/0.3365, allocations: 8 kB / 1.034 GB, free: 10.06 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.001e-06/0.3365, allocations: 0 / 1.034 GB, free: 10.06 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001571/0.3367, allocations: 28.84 kB / 1.034 GB, free: 10.03 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001889/0.3369, allocations: 43.92 kB / 1.034 GB, free: 9.984 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001192/0.3381, allocations: 1.433 MB / 1.035 GB, free: 8.414 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001674/0.3383, allocations: 23.69 kB / 1.035 GB, free: 8.391 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.724e-05/0.3383, allocations: 12 kB / 1.035 GB, free: 8.379 MB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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 (27): * Single equations (assignments): 26 * 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.0001751/0.3385, allocations: 174.4 kB / 1.035 GB, free: 8.199 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.95e-05/0.3385, allocations: 27.7 kB / 1.035 GB, free: 8.172 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.202e-05/0.3386, allocations: 29.83 kB / 1.035 GB, free: 8.137 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.663e-06/0.3386, allocations: 4 kB / 1.035 GB, free: 8.133 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.226e-06/0.3386, allocations: 0 / 1.035 GB, free: 8.133 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-06/0.3386, allocations: 0 / 1.035 GB, free: 8.133 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009542/0.3396, allocations: 0.6986 MB / 1.036 GB, free: 7.344 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.505e-06/0.3396, allocations: 0 / 1.036 GB, free: 7.344 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.833e-05/0.3397, allocations: 23.98 kB / 1.036 GB, free: 7.32 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.291e-05/0.3398, allocations: 32.97 kB / 1.036 GB, free: 7.285 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.437e-05/0.3398, allocations: 4 kB / 1.036 GB, free: 7.281 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001021/0.3408, allocations: 1.41 MB / 1.038 GB, free: 5.73 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.989e-06/0.3408, allocations: 3.984 kB / 1.038 GB, free: 5.727 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003334/0.3412, allocations: 325.1 kB / 1.038 GB, free: 5.371 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001146/0.3413, allocations: 112.8 kB / 1.038 GB, free: 5.242 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.076e-05/0.3413, allocations: 11.94 kB / 1.038 GB, free: 5.23 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001652/0.3415, allocations: 11.98 kB / 1.038 GB, free: 5.219 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.996e-05/0.3416, allocations: 19.92 kB / 1.038 GB, free: 5.199 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.384e-05/0.3416, allocations: 12 kB / 1.038 GB, free: 5.188 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0001716/0.3418, allocations: 190 kB / 1.038 GB, free: 5.004 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3418, allocations: 96 / 1.038 GB, free: 5.004 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0003842/0.3422, allocations: 79.78 kB / 1.038 GB, free: 4.926 MB / 0.8106 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (14): * Single equations (assignments): 13 * 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.0001152/0.3423, allocations: 99.19 kB / 1.038 GB, free: 4.82 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0004476/0.3427, allocations: 270.5 kB / 1.039 GB, free: 4.543 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 4.598e-06/0.3427, allocations: 4 kB / 1.039 GB, free: 4.539 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0002263/0.343, allocations: 187.6 kB / 1.039 GB, free: 4.344 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004724/0.3435, allocations: 63.27 kB / 1.039 GB, free: 4.285 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008013/0.3443, allocations: 0.5341 MB / 1.039 GB, free: 3.707 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003749/0.3447, allocations: 0.7831 MB / 1.04 GB, free: 2.898 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0001333/0.3448, allocations: 50.25 kB / 1.04 GB, free: 2.848 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.67e-05/0.3448, allocations: 23.42 kB / 1.04 GB, free: 2.824 MB / 0.8106 GB Notification: Performance of SimCode: time 2.11e-07/0.3449, allocations: 0 / 1.04 GB, free: 2.824 MB / 0.8106 GB Notification: Performance of Templates: time 0.005911/0.3508, allocations: 2.682 MB / 1.043 GB, free: 180 kB / 0.8106 GB make -j1 -f Buildings_10_Buildings.Electrical.DC.Loads.Examples.Resistor.makefile (rm -f Buildings_10_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; mkfifo Buildings_10_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe >> ../files/Buildings_10_Buildings.Electrical.DC.Loads.Examples.Resistor.sim & ./Buildings_10_Buildings.Electrical.DC.Loads.Examples.Resistor -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.DC.Loads.Examples.Resistor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_DC_Loads_Examples_Resistor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.DC.Loads.Examples.Resistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches