Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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: "" <> buildModelFMU(Buildings.Electrical.DC.Loads.Examples.Resistor,fileNamePrefix="Buildings_9_Buildings_Electrical_DC_Loads_Examples_Resistor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Loads.Examples.Resistor,fileNamePrefix="Buildings_9_Buildings_Electrical_DC_Loads_Examples_Resistor",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.005534/0.005534, allocations: 103.7 kB / 15.74 MB, free: 5.988 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.001207/0.001207, allocations: 190.1 kB / 16.67 MB, free: 5.914 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.323/1.323, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.266/2.266, allocations: 390.3 MB / 0.6648 GB, free: 0.6094 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001235/0.001235, allocations: 59.91 kB / 0.9504 GB, free: 8.172 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8028/0.804, allocations: 140.4 MB / 1.087 GB, free: 5.254 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.Resistor): time 0.004994/0.8091, allocations: 3.832 MB / 1.091 GB, free: 2.672 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.002579/0.8117, allocations: 1.733 MB / 1.093 GB, free: 1.473 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002571/0.8119, allocations: 6.938 kB / 1.093 GB, free: 1.473 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.001322/0.8133, allocations: 493.8 kB / 1.093 GB, free: 1.184 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0005918/0.8139, allocations: 220.3 kB / 1.094 GB, free: 1.059 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005734/0.8144, allocations: 217.2 kB / 1.094 GB, free: 0.9531 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0006137/0.8151, allocations: 479.5 kB / 1.094 GB, free: 0.7422 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006145/0.8157, allocations: 362.1 kB / 1.095 GB, free: 0.5898 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003582/0.8161, allocations: 196.4 kB / 1.095 GB, free: 0.5039 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004754/0.8165, allocations: 215.9 kB / 1.095 GB, free: 424 kB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 7.927e-05/0.8166, allocations: 28.31 kB / 1.095 GB, free: 424 kB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005476/0.8172, allocations: 245.3 kB / 1.095 GB, free: 340 kB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001765/0.8174, allocations: 132.1 kB / 1.095 GB, free: 280 kB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0002333/0.8176, allocations: 170.6 kB / 1.096 GB, free: 180 kB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.000853/0.8185, allocations: 0.5036 MB / 1.096 GB, free: 15.99 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.8185, allocations: 1.031 kB / 1.096 GB, free: 15.99 MB / 0.8731 GB Notification: Performance of FrontEnd: time 1.252e-06/0.8185, allocations: 0 / 1.096 GB, free: 15.99 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 1.622e-05/0.8185, allocations: 0 / 1.096 GB, free: 15.99 MB / 0.8731 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.001223/0.8197, allocations: 0.6293 MB / 1.097 GB, free: 15.48 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.05e-05/0.8198, allocations: 9.438 kB / 1.097 GB, free: 15.48 MB / 0.8731 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.369e-05/0.8199, allocations: 73.77 kB / 1.097 GB, free: 15.42 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009984/0.8209, allocations: 130 kB / 1.097 GB, free: 15.4 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004799/0.8214, allocations: 303.7 kB / 1.097 GB, free: 15.13 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.628e-05/0.8214, allocations: 21.89 kB / 1.097 GB, free: 15.12 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.203e-05/0.8215, allocations: 25.72 kB / 1.097 GB, free: 15.12 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007791/0.8223, allocations: 465.4 kB / 1.098 GB, free: 14.87 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.615e-05/0.8223, allocations: 5 kB / 1.098 GB, free: 14.86 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.955e-05/0.8223, allocations: 11.88 kB / 1.098 GB, free: 14.86 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.98e-05/0.8224, allocations: 34.83 kB / 1.098 GB, free: 14.85 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000562/0.823, allocations: 320.9 kB / 1.098 GB, free: 14.74 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002326/0.8253, allocations: 2.184 MB / 1.1 GB, free: 12.81 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004358/0.8258, allocations: 247.9 kB / 1.1 GB, free: 12.64 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002637/0.826, allocations: 105.6 kB / 1.1 GB, free: 12.61 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 1.158e-05/0.8261, allocations: 1.125 kB / 1.1 GB, free: 12.61 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.381e-05/0.8261, allocations: 32.41 kB / 1.1 GB, free: 12.57 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=14): time 1.472e-06/0.8261, allocations: 1.062 kB / 1.1 GB, free: 12.57 MB / 0.8731 GB Notification: Performance of matching and sorting (n=14): time 0.0006276/0.8267, allocations: 303.3 kB / 1.101 GB, free: 12.37 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.177e-05/0.8268, allocations: 53.56 kB / 1.101 GB, free: 12.3 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003206/0.8271, allocations: 271.6 kB / 1.101 GB, free: 12.14 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 2.514e-05/0.8272, allocations: 31.61 kB / 1.101 GB, free: 12.11 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001425/0.8273, allocations: 199.8 kB / 1.101 GB, free: 11.94 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 4.063e-05/0.8273, allocations: 46.88 kB / 1.101 GB, free: 11.91 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.064e-05/0.8274, allocations: 55.34 kB / 1.101 GB, free: 11.86 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001288/0.8276, allocations: 335 kB / 1.102 GB, free: 11.54 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001091/0.8277, allocations: 61.89 kB / 1.102 GB, free: 11.52 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000166/0.8279, allocations: 155.3 kB / 1.102 GB, free: 11.38 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002756/0.8281, allocations: 208 kB / 1.102 GB, free: 11.21 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/0.8282, allocations: 5.344 kB / 1.102 GB, free: 11.21 MB / 0.8731 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004874/0.8286, allocations: 266.5 kB / 1.102 GB, free: 11.08 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.831e-05/0.8287, allocations: 11.34 kB / 1.102 GB, free: 11.08 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.047e-06/0.8287, allocations: 3 kB / 1.102 GB, free: 11.08 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001652/0.8289, allocations: 27.31 kB / 1.102 GB, free: 11.07 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001944/0.8291, allocations: 51.62 kB / 1.102 GB, free: 11.06 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001133/0.8302, allocations: 1.42 MB / 1.104 GB, free: 9.637 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001807/0.8304, allocations: 28.38 kB / 1.104 GB, free: 9.617 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.913e-05/0.8304, allocations: 12.31 kB / 1.104 GB, free: 9.613 MB / 0.8731 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.0001883/0.8306, allocations: 169.9 kB / 1.104 GB, free: 9.469 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.141e-05/0.8307, allocations: 23.62 kB / 1.104 GB, free: 9.457 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.763e-05/0.8308, allocations: 31.42 kB / 1.104 GB, free: 9.434 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.386e-06/0.8308, allocations: 6.828 kB / 1.104 GB, free: 9.43 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.8308, allocations: 0.6562 kB / 1.104 GB, free: 9.43 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.23e-06/0.8308, allocations: 0.5625 kB / 1.104 GB, free: 9.43 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00109/0.8319, allocations: 0.7041 MB / 1.105 GB, free: 8.883 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.288e-06/0.8319, allocations: 1.688 kB / 1.105 GB, free: 8.883 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001158/0.832, allocations: 29.38 kB / 1.105 GB, free: 8.875 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.83e-05/0.8321, allocations: 24.55 kB / 1.105 GB, free: 8.863 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.589e-05/0.8321, allocations: 6.656 kB / 1.105 GB, free: 8.859 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001156/0.8333, allocations: 1.416 MB / 1.106 GB, free: 7.445 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.761e-06/0.8333, allocations: 2.031 kB / 1.106 GB, free: 7.445 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004167/0.8338, allocations: 321.5 kB / 1.107 GB, free: 7.191 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001466/0.8339, allocations: 111 kB / 1.107 GB, free: 7.082 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.603e-05/0.834, allocations: 12.22 kB / 1.107 GB, free: 7.074 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001721/0.8341, allocations: 8.219 kB / 1.107 GB, free: 7.074 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.022e-05/0.8342, allocations: 17.52 kB / 1.107 GB, free: 7.066 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.393e-05/0.8342, allocations: 9.328 kB / 1.107 GB, free: 7.062 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0002378/0.8344, allocations: 190.1 kB / 1.107 GB, free: 6.953 MB / 0.8731 GB Notification: Performance of sort global known variables: time 3.41e-07/0.8344, allocations: 0 / 1.107 GB, free: 6.953 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0004609/0.8349, allocations: 77.59 kB / 1.107 GB, free: 6.938 MB / 0.8731 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.0006909/0.8356, allocations: 0.8509 MB / 1.108 GB, free: 6.148 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0005383/0.8362, allocations: 281.2 kB / 1.108 GB, free: 5.977 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 4.418e-06/0.8362, allocations: 128 / 1.108 GB, free: 5.977 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0002593/0.8364, allocations: 185.8 kB / 1.108 GB, free: 5.84 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005108/0.837, allocations: 55.86 kB / 1.108 GB, free: 5.824 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003303/0.8403, allocations: 2.707 MB / 1.111 GB, free: 3.824 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004367/0.8407, allocations: 0.7894 MB / 1.112 GB, free: 3.117 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0001683/0.8409, allocations: 41.72 kB / 1.112 GB, free: 3.113 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001313/0.8411, allocations: 87.94 kB / 1.112 GB, free: 3.051 MB / 0.8731 GB Notification: Performance of SimCode: time 4.398e-06/0.8411, allocations: 0 / 1.112 GB, free: 3.051 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02997/0.871, allocations: 5.379 MB / 1.117 GB, free: 2.375 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.15/10.02, allocations: 7.953 kB / 1.117 GB, free: 2.371 MB / 0.8731 GB (rm -f Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_9_Buildings_Electrical_DC_Loads_Examples_Resistor.fmu > Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_DC_Loads_Examples_Resistor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches