Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_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_11_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.001503/0.001503, allocations: 108.4 kB / 15.99 MB, free: 6.348 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.001516/0.001516, allocations: 191.3 kB / 16.91 MB, free: 6.188 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.337/1.337, allocations: 222.9 MB / 240.6 MB, free: 13.72 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.556/2.556, allocations: 469.8 MB / 0.7427 GB, free: 3.664 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001809/0.001809, allocations: 63.88 kB / 0.9087 GB, free: 14.23 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3147/0.3165, allocations: 159.2 MB / 1.064 GB, free: 15.12 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.Resistor): time 0.005636/0.3222, allocations: 3.86 MB / 1.068 GB, free: 11.23 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.002647/0.3249, allocations: 1.714 MB / 1.07 GB, free: 9.512 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001542/0.3251, allocations: 7.938 kB / 1.07 GB, free: 9.504 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.001366/0.3265, allocations: 478.5 kB / 1.07 GB, free: 9.035 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0004767/0.3269, allocations: 207.1 kB / 1.07 GB, free: 8.832 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004803/0.3274, allocations: 187.6 kB / 1.07 GB, free: 8.648 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0005028/0.3279, allocations: 486.3 kB / 1.071 GB, free: 8.172 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005889/0.3285, allocations: 401.3 kB / 1.071 GB, free: 7.777 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000204/0.3288, allocations: 191.4 kB / 1.071 GB, free: 7.59 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003448/0.3291, allocations: 231.1 kB / 1.072 GB, free: 7.363 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 4.548e-05/0.3292, allocations: 32 kB / 1.072 GB, free: 7.332 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003739/0.3295, allocations: 243.4 kB / 1.072 GB, free: 7.094 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0001224/0.3297, allocations: 123.7 kB / 1.072 GB, free: 6.973 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.000173/0.3299, allocations: 175.1 kB / 1.072 GB, free: 6.801 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.000443/0.3303, allocations: 399.1 kB / 1.073 GB, free: 6.41 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.3303, allocations: 3.938 kB / 1.073 GB, free: 6.406 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.363e-06/0.3303, allocations: 0 / 1.073 GB, free: 6.406 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 7.024e-06/0.3303, allocations: 0 / 1.073 GB, free: 6.406 MB / 0.8419 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.001018/0.3314, allocations: 0.6315 MB / 1.073 GB, free: 5.727 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.67e-05/0.3314, allocations: 8.031 kB / 1.073 GB, free: 5.719 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008591/0.3323, allocations: 132.4 kB / 1.073 GB, free: 5.59 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000351/0.3326, allocations: 283.7 kB / 1.074 GB, free: 5.273 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.602e-05/0.3327, allocations: 24.97 kB / 1.074 GB, free: 5.25 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.087e-05/0.3327, allocations: 28.38 kB / 1.074 GB, free: 5.223 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006556/0.3334, allocations: 459.9 kB / 1.074 GB, free: 4.734 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.291e-05/0.3334, allocations: 0 / 1.074 GB, free: 4.734 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.721e-05/0.3334, allocations: 19.98 kB / 1.074 GB, free: 4.715 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.861e-05/0.3335, allocations: 32.55 kB / 1.074 GB, free: 4.684 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004851/0.334, allocations: 317.9 kB / 1.074 GB, free: 4.371 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002221/0.3362, allocations: 2.193 MB / 1.077 GB, free: 1.969 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003764/0.3366, allocations: 251.8 kB / 1.077 GB, free: 1.695 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002427/0.3369, allocations: 116.8 kB / 1.077 GB, free: 1.578 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 1.587e-05/0.3369, allocations: 7.938 kB / 1.077 GB, free: 1.57 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.824e-05/0.3369, allocations: 38.55 kB / 1.077 GB, free: 1.523 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=14): time 1.213e-06/0.3369, allocations: 0 / 1.077 GB, free: 1.523 MB / 0.8419 GB Notification: Performance of matching and sorting (n=14): time 0.000583/0.3375, allocations: 298.9 kB / 1.077 GB, free: 1.207 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.837e-05/0.3376, allocations: 51.41 kB / 1.077 GB, free: 1.145 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002938/0.3379, allocations: 270.5 kB / 1.078 GB, free: 0.8711 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.347e-05/0.3379, allocations: 33.64 kB / 1.078 GB, free: 0.832 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001371/0.338, allocations: 199.9 kB / 1.078 GB, free: 0.6328 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 3.847e-05/0.3381, allocations: 47.28 kB / 1.078 GB, free: 0.5859 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.514e-05/0.3382, allocations: 53.84 kB / 1.078 GB, free: 0.5234 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001427/0.3383, allocations: 338.8 kB / 1.078 GB, free: 188 kB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.648e-05/0.3384, allocations: 60.44 kB / 1.078 GB, free: 128 kB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.4745/0.8129, allocations: 143.4 kB / 1.078 GB, free: 22.33 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003104/0.8133, allocations: 216.5 kB / 1.079 GB, free: 22.23 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.588e-06/0.8133, allocations: 2.125 kB / 1.079 GB, free: 22.23 MB / 0.8419 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0005048/0.8138, allocations: 266.5 kB / 1.079 GB, free: 22.18 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.122e-05/0.8138, allocations: 7.938 kB / 1.079 GB, free: 22.18 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.287e-06/0.8138, allocations: 2.875 kB / 1.079 GB, free: 22.18 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000173/0.814, allocations: 29.88 kB / 1.079 GB, free: 22.18 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000188/0.8142, allocations: 48.28 kB / 1.079 GB, free: 22.17 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008091/0.815, allocations: 1.423 MB / 1.08 GB, free: 20.83 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001675/0.8152, allocations: 28.23 kB / 1.08 GB, free: 20.83 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.728e-05/0.8152, allocations: 11.22 kB / 1.08 GB, free: 20.83 MB / 0.8419 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.0001609/0.8154, allocations: 171.4 kB / 1.081 GB, free: 20.71 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.568e-05/0.8155, allocations: 24.75 kB / 1.081 GB, free: 20.71 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.616e-05/0.8155, allocations: 31.72 kB / 1.081 GB, free: 20.71 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.747e-06/0.8155, allocations: 2.5 kB / 1.081 GB, free: 20.71 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.517e-06/0.8155, allocations: 0.75 kB / 1.081 GB, free: 20.71 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/0.8155, allocations: 0.6094 kB / 1.081 GB, free: 20.71 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008747/0.8164, allocations: 0.7092 MB / 1.081 GB, free: 20.28 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.158e-06/0.8164, allocations: 2.766 kB / 1.081 GB, free: 20.28 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.655e-05/0.8165, allocations: 20.86 kB / 1.081 GB, free: 20.28 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.092e-05/0.8166, allocations: 30.86 kB / 1.081 GB, free: 20.26 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.347e-05/0.8166, allocations: 8.625 kB / 1.081 GB, free: 20.26 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006824/0.8173, allocations: 1.413 MB / 1.083 GB, free: 18.91 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.514e-06/0.8173, allocations: 4.875 kB / 1.083 GB, free: 18.91 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002887/0.8176, allocations: 316.7 kB / 1.083 GB, free: 18.71 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 8.361e-05/0.8177, allocations: 118.4 kB / 1.083 GB, free: 18.6 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.005e-05/0.8178, allocations: 3.922 kB / 1.083 GB, free: 18.6 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001597/0.8179, allocations: 12.27 kB / 1.083 GB, free: 18.6 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.545e-05/0.818, allocations: 23.2 kB / 1.083 GB, free: 18.59 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.158e-05/0.818, allocations: 8.906 kB / 1.083 GB, free: 18.59 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001847/0.8182, allocations: 188.2 kB / 1.083 GB, free: 18.51 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8182, allocations: 0 / 1.083 GB, free: 18.51 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003846/0.8186, allocations: 80.5 kB / 1.083 GB, free: 18.5 MB / 0.8419 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.0001028/0.8187, allocations: 107.9 kB / 1.084 GB, free: 18.41 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0004374/0.8191, allocations: 279.7 kB / 1.084 GB, free: 18.25 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/0.8191, allocations: 0.9688 kB / 1.084 GB, free: 18.25 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001798/0.8193, allocations: 187.1 kB / 1.084 GB, free: 18.11 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004529/0.8198, allocations: 55.48 kB / 1.084 GB, free: 18.1 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007843/0.8206, allocations: 0.6891 MB / 1.085 GB, free: 17.6 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002241/0.8208, allocations: 0.8003 MB / 1.086 GB, free: 16.89 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.308e-05/0.8209, allocations: 20.97 kB / 1.086 GB, free: 16.88 MB / 0.8419 GB Notification: Performance of SimCode: time 2.6e-07/0.8209, allocations: 0 / 1.086 GB, free: 16.88 MB / 0.8419 GB Notification: Performance of Templates: time 0.007924/0.8288, allocations: 4.388 MB / 1.09 GB, free: 16.57 MB / 0.8419 GB make -j1 -f Buildings_11_Buildings.Electrical.DC.Loads.Examples.Resistor.makefile (rm -f Buildings_11_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; mkfifo Buildings_11_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; head -c 1048576 < Buildings_11_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe >> ../files/Buildings_11_Buildings.Electrical.DC.Loads.Examples.Resistor.sim & ./Buildings_11_Buildings.Electrical.DC.Loads.Examples.Resistor -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Electrical.DC.Loads.Examples.Resistor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Electrical_DC_Loads_Examples_Resistor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Electrical.DC.Loads.Examples.Resistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches