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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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: "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.Resistance,fileNamePrefix="Buildings_latest_Buildings_Electrical_DC_Lines_Examples_Resistance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.Resistance,fileNamePrefix="Buildings_latest_Buildings_Electrical_DC_Lines_Examples_Resistance",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009916/0.0009916, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.006099/0.006099, allocations: 170.1 kB / 16.27 MB, free: 6.652 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.354/1.354, allocations: 223.3 MB / 240.3 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.544/2.544, allocations: 462.6 MB / 0.7364 GB, free: 15.55 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003282/0.0003282, allocations: 11.56 kB / 0.9029 GB, free: 36.5 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2416/0.242, allocations: 159.6 MB / 1.059 GB, free: 4.875 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.Resistance): time 0.003227/0.2452, allocations: 2.771 MB / 1.061 GB, free: 2.09 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001798/0.2471, allocations: 1.301 MB / 1.063 GB, free: 0.7812 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001171/0.2472, allocations: 4 kB / 1.063 GB, free: 0.7773 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001505/0.2474, allocations: 43.64 kB / 1.063 GB, free: 0.7344 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0003516/0.2477, allocations: 139.4 kB / 1.063 GB, free: 0.5977 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003286/0.2481, allocations: 127.7 kB / 1.063 GB, free: 484 kB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0003886/0.2484, allocations: 430.8 kB / 1.063 GB, free: 52 kB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002983/0.2488, allocations: 233.4 kB / 1.064 GB, free: 15.81 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001272/0.2489, allocations: 99.56 kB / 1.064 GB, free: 15.71 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002522/0.2491, allocations: 131.5 kB / 1.064 GB, free: 15.58 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.323e-05/0.2492, allocations: 8 kB / 1.064 GB, free: 15.57 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003034/0.2495, allocations: 207.6 kB / 1.064 GB, free: 15.37 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 8.229e-05/0.2496, allocations: 75.8 kB / 1.064 GB, free: 15.3 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001001/0.2497, allocations: 125.2 kB / 1.064 GB, free: 15.17 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0003509/0.25, allocations: 335.1 kB / 1.065 GB, free: 14.84 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.036e-06/0.2501, allocations: 0 / 1.065 GB, free: 14.84 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.152e-06/0.2501, allocations: 0 / 1.065 GB, free: 14.84 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.651e-06/0.2501, allocations: 0 / 1.065 GB, free: 14.84 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.0006447/0.2507, allocations: 499 kB / 1.065 GB, free: 14.3 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.555e-05/0.2508, allocations: 15.97 kB / 1.065 GB, free: 14.29 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.832e-05/0.2508, allocations: 54.73 kB / 1.065 GB, free: 14.22 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005349/0.2514, allocations: 80.58 kB / 1.065 GB, free: 14.14 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000245/0.2516, allocations: 240 kB / 1.065 GB, free: 13.87 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.654e-05/0.2517, allocations: 12.75 kB / 1.065 GB, free: 13.86 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.846e-05/0.2517, allocations: 16.38 kB / 1.065 GB, free: 13.84 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003998/0.2521, allocations: 307.3 kB / 1.066 GB, free: 13.52 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.706e-06/0.2521, allocations: 0 / 1.066 GB, free: 13.52 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.29e-05/0.2521, allocations: 7.984 kB / 1.066 GB, free: 13.51 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.97e-05/0.2522, allocations: 16.38 kB / 1.066 GB, free: 13.5 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002821/0.2525, allocations: 200.7 kB / 1.066 GB, free: 13.3 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001266/0.2537, allocations: 1.46 MB / 1.067 GB, free: 11.68 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002379/0.254, allocations: 187.7 kB / 1.068 GB, free: 11.47 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.388e-05/0.254, allocations: 32.84 kB / 1.068 GB, free: 11.43 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 6.061e-06/0.2541, allocations: 0 / 1.068 GB, free: 11.43 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.902e-05/0.2541, allocations: 30.56 kB / 1.068 GB, free: 11.39 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=7): time 8.92e-07/0.2541, allocations: 0 / 1.068 GB, free: 11.39 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7): time 0.0004112/0.2545, allocations: 235.5 kB / 1.068 GB, free: 11.14 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.061e-05/0.2545, allocations: 55.41 kB / 1.068 GB, free: 11.07 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001626/0.2547, allocations: 199 kB / 1.068 GB, free: 10.87 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.705e-05/0.2547, allocations: 25.7 kB / 1.068 GB, free: 10.84 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 8.459e-05/0.2548, allocations: 167.5 kB / 1.068 GB, free: 10.67 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.002e-05/0.2549, allocations: 27.64 kB / 1.068 GB, free: 10.64 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.142e-05/0.2549, allocations: 17.72 kB / 1.068 GB, free: 10.62 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 9.28e-05/0.255, allocations: 330.8 kB / 1.069 GB, free: 10.29 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.491e-05/0.255, allocations: 27.98 kB / 1.069 GB, free: 10.26 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.405e-05/0.2551, allocations: 106.3 kB / 1.069 GB, free: 10.12 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001523/0.2553, allocations: 156.3 kB / 1.069 GB, free: 9.941 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.2553, allocations: 0 / 1.069 GB, free: 9.941 MB / 0.8262 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002771/0.2556, allocations: 194 kB / 1.069 GB, free: 9.742 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.135e-05/0.2556, allocations: 8 kB / 1.069 GB, free: 9.734 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.861e-06/0.2556, allocations: 4 kB / 1.069 GB, free: 9.73 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001291/0.2558, allocations: 24.84 kB / 1.069 GB, free: 9.703 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000101/0.2559, allocations: 28.2 kB / 1.069 GB, free: 9.676 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008655/0.2567, allocations: 1.32 MB / 1.07 GB, free: 8.215 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001126/0.2569, allocations: 23.91 kB / 1.071 GB, free: 8.191 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.203e-05/0.2569, allocations: 11.98 kB / 1.071 GB, free: 8.18 MB / 0.8262 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.0001097/0.257, allocations: 141.8 kB / 1.071 GB, free: 8.031 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.578e-05/0.257, allocations: 15.84 kB / 1.071 GB, free: 8.016 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.74e-05/0.2571, allocations: 21.39 kB / 1.071 GB, free: 8 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.252e-06/0.2571, allocations: 0 / 1.071 GB, free: 8 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.764e-06/0.2571, allocations: 0 / 1.071 GB, free: 8 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.124e-06/0.2571, allocations: 0 / 1.071 GB, free: 8 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000438/0.2575, allocations: 459.1 kB / 1.071 GB, free: 7.492 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.2575, allocations: 0 / 1.071 GB, free: 7.492 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.28e-05/0.2576, allocations: 4 kB / 1.071 GB, free: 7.488 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.119e-05/0.2577, allocations: 28.78 kB / 1.071 GB, free: 7.457 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.442e-06/0.2577, allocations: 0 / 1.071 GB, free: 7.457 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007821/0.2585, allocations: 1.308 MB / 1.072 GB, free: 6.016 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/0.2585, allocations: 3.984 kB / 1.072 GB, free: 6.012 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001925/0.2587, allocations: 212.3 kB / 1.073 GB, free: 5.785 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.923e-05/0.2587, allocations: 96.91 kB / 1.073 GB, free: 5.672 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.263e-05/0.2588, allocations: 7.938 kB / 1.073 GB, free: 5.664 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.919e-05/0.2589, allocations: 4 kB / 1.073 GB, free: 5.66 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.074e-05/0.2589, allocations: 11.95 kB / 1.073 GB, free: 5.648 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.789e-06/0.2589, allocations: 4 kB / 1.073 GB, free: 5.645 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001095/0.259, allocations: 152.7 kB / 1.073 GB, free: 5.496 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.11e-07/0.259, allocations: 0 / 1.073 GB, free: 5.496 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002932/0.2593, allocations: 55.84 kB / 1.073 GB, free: 5.441 MB / 0.8262 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 0.0004168/0.2598, allocations: 0.7404 MB / 1.074 GB, free: 4.668 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003004/0.2601, allocations: 210.7 kB / 1.074 GB, free: 4.449 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.2601, allocations: 288 / 1.074 GB, free: 4.449 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001381/0.2602, allocations: 150.6 kB / 1.074 GB, free: 4.289 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000323/0.2606, allocations: 37.69 kB / 1.074 GB, free: 4.254 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001918/0.2625, allocations: 2.126 MB / 1.076 GB, free: 1.988 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002493/0.2627, allocations: 0.74 MB / 1.077 GB, free: 1.223 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 9.259e-05/0.2628, allocations: 25.53 kB / 1.077 GB, free: 1.199 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.46e-05/0.2629, allocations: 51.42 kB / 1.077 GB, free: 1.148 MB / 0.8262 GB Notification: Performance of SimCode: time 3.91e-07/0.2629, allocations: 0 / 1.077 GB, free: 1.148 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.347/2.61, allocations: 3.401 MB / 1.08 GB, free: 13.92 MB / 0.8419 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002291/2.611, allocations: 224.8 kB / 1.08 GB, free: 13.66 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.06/4.67, allocations: 0 / 1.08 GB, free: 13.66 MB / 0.8419 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_DC_Lines_Examples_Resistance_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_DC_Lines_Examples_Resistance.fmu > 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/jenkins1/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