Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Electrical.DC.Loads.Examples.Resistor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001785/0.001785, allocations: 109.5 kB / 16.45 MB, free: 6.453 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002197/0.002197, allocations: 216.2 kB / 19.43 MB, free: 3.625 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.443/1.443, allocations: 230.6 MB / 252.8 MB, free: 8.957 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.112/3.112, allocations: 0.49 GB / 0.7916 GB, free: 33.41 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.DC.Loads.Examples.Resistor,fileNamePrefix="Buildings_12_Buildings_Electrical_DC_Loads_Examples_Resistor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Loads.Examples.Resistor,fileNamePrefix="Buildings_12_Buildings_Electrical_DC_Loads_Examples_Resistor",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002017/0.002017, allocations: 67.17 kB / 1.149 GB, free: 26.37 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3455/0.3475, allocations: 176.1 MB / 1.321 GB, free: 3.312 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.Resistor): time 0.00612/0.3536, allocations: 3.891 MB / 1.325 GB, free: 15.41 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.003271/0.3569, allocations: 1.807 MB / 1.326 GB, free: 13.59 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001947/0.3571, allocations: 15.94 kB / 1.326 GB, free: 13.57 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.001482/0.3585, allocations: 0.4903 MB / 1.327 GB, free: 13.08 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.000607/0.3591, allocations: 230.9 kB / 1.327 GB, free: 12.86 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005917/0.3597, allocations: 207.5 kB / 1.327 GB, free: 12.65 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0006054/0.3603, allocations: 478.4 kB / 1.328 GB, free: 12.18 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005509/0.3609, allocations: 293.5 kB / 1.328 GB, free: 11.89 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002565/0.3611, allocations: 199.3 kB / 1.328 GB, free: 11.7 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004291/0.3616, allocations: 231.1 kB / 1.328 GB, free: 11.47 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 4.961e-05/0.3616, allocations: 28 kB / 1.328 GB, free: 11.44 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004763/0.3621, allocations: 251.5 kB / 1.329 GB, free: 11.2 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0001499/0.3623, allocations: 135.6 kB / 1.329 GB, free: 11.06 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0002039/0.3625, allocations: 171.2 kB / 1.329 GB, free: 10.89 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0007115/0.3632, allocations: 0.502 MB / 1.329 GB, free: 10.39 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.3632, allocations: 0 / 1.329 GB, free: 10.39 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.212e-06/0.3632, allocations: 4 kB / 1.329 GB, free: 10.39 MB / 1.029 GB Notification: Performance of Transformations before backend: time 8.456e-06/0.3632, allocations: 0 / 1.329 GB, free: 10.39 MB / 1.029 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.001156/0.3643, allocations: 0.6349 MB / 1.33 GB, free: 9.699 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 5.196e-05/0.3644, allocations: 15.98 kB / 1.33 GB, free: 9.684 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.924e-05/0.3645, allocations: 70.72 kB / 1.33 GB, free: 9.605 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009449/0.3654, allocations: 140.5 kB / 1.33 GB, free: 9.469 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004355/0.3659, allocations: 287.8 kB / 1.331 GB, free: 9.148 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.714e-05/0.3659, allocations: 21.03 kB / 1.331 GB, free: 9.129 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.734e-05/0.3659, allocations: 32.36 kB / 1.331 GB, free: 9.098 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007074/0.3667, allocations: 467.7 kB / 1.331 GB, free: 8.602 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.577e-05/0.3667, allocations: 11.92 kB / 1.331 GB, free: 8.59 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.68e-05/0.3667, allocations: 12 kB / 1.331 GB, free: 8.578 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.021e-05/0.3668, allocations: 28.55 kB / 1.331 GB, free: 8.551 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005456/0.3673, allocations: 321.9 kB / 1.331 GB, free: 8.238 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002532/0.3698, allocations: 2.181 MB / 1.334 GB, free: 5.844 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004043/0.3702, allocations: 239.8 kB / 1.334 GB, free: 5.582 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002267/0.3705, allocations: 96.8 kB / 1.334 GB, free: 5.484 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.587e-05/0.3705, allocations: 4 kB / 1.334 GB, free: 5.48 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.612e-05/0.3705, allocations: 34.81 kB / 1.334 GB, free: 5.438 MB / 1.029 GB Notification: Performance of pre-optimization done (n=14): time 1.783e-06/0.3705, allocations: 0 / 1.334 GB, free: 5.438 MB / 1.029 GB Notification: Performance of matching and sorting (n=14): time 0.0006407/0.3712, allocations: 300.4 kB / 1.334 GB, free: 5.117 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.622e-05/0.3712, allocations: 55.41 kB / 1.334 GB, free: 5.051 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000301/0.3715, allocations: 270.6 kB / 1.335 GB, free: 4.781 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.989e-05/0.3715, allocations: 29.7 kB / 1.335 GB, free: 4.746 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001475/0.3717, allocations: 212.3 kB / 1.335 GB, free: 4.535 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 4.959e-05/0.3717, allocations: 51.53 kB / 1.335 GB, free: 4.484 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.121e-05/0.3718, allocations: 45.91 kB / 1.335 GB, free: 4.43 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001567/0.372, allocations: 338.8 kB / 1.335 GB, free: 4.09 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001065/0.3721, allocations: 60.38 kB / 1.335 GB, free: 4.031 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001717/0.3722, allocations: 152.9 kB / 1.335 GB, free: 3.844 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002866/0.3725, allocations: 214.9 kB / 1.336 GB, free: 3.594 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.3725, allocations: 4 kB / 1.336 GB, free: 3.59 MB / 1.029 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004506/0.373, allocations: 262 kB / 1.336 GB, free: 3.324 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.776e-05/0.373, allocations: 8 kB / 1.336 GB, free: 3.316 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.861e-06/0.373, allocations: 384 / 1.336 GB, free: 3.316 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001595/0.3732, allocations: 36.78 kB / 1.336 GB, free: 3.277 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001889/0.3734, allocations: 47.91 kB / 1.336 GB, free: 3.23 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001304/0.3747, allocations: 1.426 MB / 1.337 GB, free: 1.668 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001747/0.3748, allocations: 27.84 kB / 1.337 GB, free: 1.641 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.181e-05/0.3749, allocations: 16 kB / 1.337 GB, free: 1.625 MB / 1.029 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.0002067/0.3751, allocations: 173.7 kB / 1.338 GB, free: 1.445 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.551e-05/0.3751, allocations: 23.86 kB / 1.338 GB, free: 1.422 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.849e-05/0.3752, allocations: 33.77 kB / 1.338 GB, free: 1.383 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.894e-06/0.3752, allocations: 0 / 1.338 GB, free: 1.383 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.186e-06/0.3752, allocations: 0 / 1.338 GB, free: 1.383 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.276e-06/0.3752, allocations: 0 / 1.338 GB, free: 1.383 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001016/0.3762, allocations: 0.7025 MB / 1.338 GB, free: 0.5898 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.839e-06/0.3762, allocations: 4 kB / 1.338 GB, free: 0.5859 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.864e-05/0.3763, allocations: 19.94 kB / 1.338 GB, free: 0.5664 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001021/0.3764, allocations: 28.78 kB / 1.338 GB, free: 0.5352 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.544e-05/0.3764, allocations: 8 kB / 1.338 GB, free: 0.5273 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001186/0.3776, allocations: 1.418 MB / 1.34 GB, free: 14.97 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.3776, allocations: 0 / 1.34 GB, free: 14.97 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003882/0.378, allocations: 320.2 kB / 1.34 GB, free: 14.62 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001178/0.3781, allocations: 113 kB / 1.34 GB, free: 14.49 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.913e-05/0.3781, allocations: 7.984 kB / 1.34 GB, free: 14.48 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001727/0.3783, allocations: 12 kB / 1.34 GB, free: 14.47 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.206e-05/0.3783, allocations: 15.92 kB / 1.34 GB, free: 14.46 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.314e-05/0.3784, allocations: 8 kB / 1.34 GB, free: 14.45 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.0002141/0.3786, allocations: 197.9 kB / 1.34 GB, free: 14.26 MB / 1.045 GB Notification: Performance of sort global known variables: time 7e-08/0.3786, allocations: 0 / 1.34 GB, free: 14.26 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0004418/0.379, allocations: 79.78 kB / 1.34 GB, free: 14.18 MB / 1.045 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.0007284/0.3797, allocations: 0.8509 MB / 1.341 GB, free: 13.28 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0005153/0.3803, allocations: 262.8 kB / 1.342 GB, free: 13.01 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 1.463e-05/0.3803, allocations: 4 kB / 1.342 GB, free: 13 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0002244/0.3805, allocations: 174.5 kB / 1.342 GB, free: 12.82 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004899/0.381, allocations: 72.91 kB / 1.342 GB, free: 12.76 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003473/0.3845, allocations: 2.718 MB / 1.344 GB, free: 9.852 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004715/0.3849, allocations: 0.7948 MB / 1.345 GB, free: 9.031 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 0.0001519/0.3851, allocations: 46.25 kB / 1.345 GB, free: 8.988 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001281/0.3852, allocations: 83.41 kB / 1.345 GB, free: 8.906 MB / 1.045 GB Notification: Performance of SimCode: time 4.61e-07/0.3852, allocations: 0 / 1.345 GB, free: 8.906 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03421/0.4194, allocations: 5.428 MB / 1.351 GB, free: 3.613 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.835/10.25, allocations: 1.969 kB / 1.351 GB, free: 3.613 MB / 1.045 GB " [Timeout remaining time 290] (rm -f Buildings_12_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; mkfifo Buildings_12_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; head -c 1048576 < Buildings_12_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe >> ../files/Buildings_12_Buildings.Electrical.DC.Loads.Examples.Resistor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Electrical.DC.Loads.Examples.Resistor_res.mat --tempDir=temp_Buildings_12_Buildings_Electrical_DC_Loads_Examples_Resistor_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Electrical_DC_Loads_Examples_Resistor.fmu > Buildings_12_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Electrical.DC.Loads.Examples.Resistor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Electrical_DC_Loads_Examples_Resistor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Electrical.DC.Loads.Examples.Resistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 16.801418332150206]