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.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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.002025/0.002025, allocations: 108 kB / 15.6 MB, free: 132 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.002349/0.002349, allocations: 193.8 kB / 16.53 MB, free: 6.391 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.55/1.55, allocations: 222.9 MB / 240.2 MB, free: 4.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.822/2.822, allocations: 437 MB / 0.7104 GB, free: 5.078 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.002591/0.002591, allocations: 75.88 kB / 0.8692 GB, free: 4.629 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8013/0.8039, allocations: 151.6 MB / 1.017 GB, free: 2.477 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.Resistor): time 0.006061/0.81, allocations: 3.837 MB / 1.021 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.003023/0.813, allocations: 1.737 MB / 1.023 GB, free: 12.88 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001962/0.8133, allocations: 11.94 kB / 1.023 GB, free: 12.86 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.001472/0.8147, allocations: 495.1 kB / 1.023 GB, free: 12.38 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0004961/0.8153, allocations: 214.9 kB / 1.023 GB, free: 12.17 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.000524/0.8158, allocations: 215.4 kB / 1.024 GB, free: 11.96 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0005114/0.8163, allocations: 474.4 kB / 1.024 GB, free: 11.49 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005975/0.8169, allocations: 371.1 kB / 1.024 GB, free: 11.13 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002274/0.8171, allocations: 187.4 kB / 1.025 GB, free: 10.95 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003667/0.8175, allocations: 215.2 kB / 1.025 GB, free: 10.73 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 5.401e-05/0.8176, allocations: 32 kB / 1.025 GB, free: 10.7 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004109/0.818, allocations: 243.4 kB / 1.025 GB, free: 10.46 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001332/0.8181, allocations: 123.7 kB / 1.025 GB, free: 10.34 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001813/0.8183, allocations: 167.2 kB / 1.025 GB, free: 10.18 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0005958/0.8189, allocations: 0.5062 MB / 1.026 GB, free: 9.672 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.819, allocations: 0 / 1.026 GB, free: 9.672 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.593e-06/0.819, allocations: 0 / 1.026 GB, free: 9.672 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 7.054e-06/0.819, allocations: 0 / 1.026 GB, free: 9.672 MB / 0.7794 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.001162/0.8201, allocations: 0.6277 MB / 1.026 GB, free: 8.996 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.293e-05/0.8202, allocations: 8.031 kB / 1.026 GB, free: 8.988 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009138/0.8211, allocations: 140.3 kB / 1.027 GB, free: 8.852 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003935/0.8215, allocations: 283.6 kB / 1.027 GB, free: 8.535 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.342e-05/0.8215, allocations: 25.02 kB / 1.027 GB, free: 8.512 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.483e-05/0.8216, allocations: 24.38 kB / 1.027 GB, free: 8.488 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007066/0.8223, allocations: 471.9 kB / 1.027 GB, free: 7.988 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.961e-05/0.8223, allocations: 3.938 kB / 1.027 GB, free: 7.984 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.783e-05/0.8224, allocations: 12 kB / 1.027 GB, free: 7.973 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.601e-05/0.8224, allocations: 24.55 kB / 1.027 GB, free: 7.949 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004973/0.8229, allocations: 321.9 kB / 1.028 GB, free: 7.637 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002346/0.8253, allocations: 2.197 MB / 1.03 GB, free: 5.227 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000382/0.8257, allocations: 250.5 kB / 1.03 GB, free: 4.957 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00025/0.8259, allocations: 112.8 kB / 1.03 GB, free: 4.844 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.124e-05/0.826, allocations: 4 kB / 1.03 GB, free: 4.84 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.423e-05/0.826, allocations: 34.56 kB / 1.03 GB, free: 4.797 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=14): time 1.433e-06/0.826, allocations: 0 / 1.03 GB, free: 4.797 MB / 0.7794 GB Notification: Performance of matching and sorting (n=14): time 0.0006316/0.8266, allocations: 303.5 kB / 1.031 GB, free: 4.473 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.084e-05/0.8267, allocations: 55.39 kB / 1.031 GB, free: 4.406 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003579/0.827, allocations: 266.7 kB / 1.031 GB, free: 4.141 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.031e-05/0.8271, allocations: 33.64 kB / 1.031 GB, free: 4.102 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001436/0.8272, allocations: 207.8 kB / 1.031 GB, free: 3.895 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 4.096e-05/0.8273, allocations: 47.3 kB / 1.031 GB, free: 3.848 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.49e-05/0.8274, allocations: 53.84 kB / 1.031 GB, free: 3.785 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001499/0.8275, allocations: 330.8 kB / 1.031 GB, free: 3.453 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001045/0.8276, allocations: 60.44 kB / 1.032 GB, free: 3.395 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001667/0.8278, allocations: 148.9 kB / 1.032 GB, free: 3.211 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002831/0.8281, allocations: 217.1 kB / 1.032 GB, free: 2.961 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.8281, allocations: 0 / 1.032 GB, free: 2.961 MB / 0.7794 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004618/0.8286, allocations: 269.8 kB / 1.032 GB, free: 2.688 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.58e-05/0.8286, allocations: 4 kB / 1.032 GB, free: 2.684 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.414e-06/0.8286, allocations: 4.375 kB / 1.032 GB, free: 2.68 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000153/0.8288, allocations: 28.84 kB / 1.032 GB, free: 2.648 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001952/0.829, allocations: 51.91 kB / 1.032 GB, free: 2.598 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001183/0.8302, allocations: 1.418 MB / 1.034 GB, free: 1.043 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001603/0.8303, allocations: 31.59 kB / 1.034 GB, free: 1.012 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.015e-05/0.8304, allocations: 16 kB / 1.034 GB, free: 0.9961 MB / 0.7794 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.0001825/0.8306, allocations: 169.8 kB / 1.034 GB, free: 0.8203 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.44e-05/0.8306, allocations: 19.81 kB / 1.034 GB, free: 0.8008 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.069e-05/0.8307, allocations: 25.89 kB / 1.034 GB, free: 0.7695 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.492e-06/0.8307, allocations: 8 kB / 1.034 GB, free: 0.7617 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.056e-06/0.8307, allocations: 0 / 1.034 GB, free: 0.7617 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.615e-06/0.8307, allocations: 0 / 1.034 GB, free: 0.7617 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009607/0.8317, allocations: 0.7101 MB / 1.035 GB, free: 15.96 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.215e-06/0.8317, allocations: 0 / 1.035 GB, free: 15.96 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.509e-05/0.8318, allocations: 23.94 kB / 1.035 GB, free: 15.94 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.562e-05/0.8319, allocations: 32.97 kB / 1.035 GB, free: 15.9 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.291e-05/0.8319, allocations: 4 kB / 1.035 GB, free: 15.9 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001167/0.833, allocations: 1.414 MB / 1.036 GB, free: 14.34 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.188e-06/0.8331, allocations: 4.031 kB / 1.036 GB, free: 14.34 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003746/0.8334, allocations: 314.8 kB / 1.036 GB, free: 14 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001206/0.8336, allocations: 112.8 kB / 1.036 GB, free: 13.87 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.145e-05/0.8336, allocations: 7.984 kB / 1.036 GB, free: 13.86 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000152/0.8338, allocations: 8 kB / 1.036 GB, free: 13.85 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.878e-05/0.8338, allocations: 24.02 kB / 1.036 GB, free: 13.83 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.085e-05/0.8338, allocations: 7.938 kB / 1.036 GB, free: 13.82 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0002035/0.834, allocations: 194 kB / 1.037 GB, free: 13.64 MB / 0.795 GB Notification: Performance of sort global known variables: time 2.214e-06/0.8341, allocations: 0 / 1.037 GB, free: 13.64 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0003771/0.8344, allocations: 79.72 kB / 1.037 GB, free: 13.56 MB / 0.795 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.0001305/0.8346, allocations: 103.8 kB / 1.037 GB, free: 13.45 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0005132/0.8351, allocations: 274.4 kB / 1.037 GB, free: 13.17 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.8351, allocations: 0 / 1.037 GB, free: 13.17 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.000236/0.8353, allocations: 187.5 kB / 1.037 GB, free: 12.97 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004758/0.8358, allocations: 61.08 kB / 1.037 GB, free: 12.92 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009416/0.8368, allocations: 0.5514 MB / 1.038 GB, free: 12.32 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004849/0.8373, allocations: 0.787 MB / 1.039 GB, free: 11.51 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0001426/0.8374, allocations: 46.25 kB / 1.039 GB, free: 11.46 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.507e-05/0.8375, allocations: 19.44 kB / 1.039 GB, free: 11.44 MB / 0.795 GB Notification: Performance of SimCode: time 3.7e-07/0.8375, allocations: 4 kB / 1.039 GB, free: 11.44 MB / 0.795 GB Notification: Performance of Templates: time 0.006778/0.8443, allocations: 2.685 MB / 1.041 GB, free: 8.789 MB / 0.795 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=400 -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/jenkins/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