Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Electrical.DC.Lines.Examples.Resistance.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.0008167/0.0008167, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 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.0008739/0.0008739, allocations: 170.3 kB / 22.46 MB, free: 2.105 MB / 18.57 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 0.8615/0.8615, allocations: 177.2 MB / 202.8 MB, free: 5.738 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.688/1.688, allocations: 377.9 MB / 0.6221 GB, free: 8.656 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-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.Lines.Examples.Resistance,fileNamePrefix="Buildings_12_Buildings_Electrical_DC_Lines_Examples_Resistance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.Resistance,fileNamePrefix="Buildings_12_Buildings_Electrical_DC_Lines_Examples_Resistance",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.335e-06/2.335e-06, allocations: 0 / 0.9809 GB, free: 2.637 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.07e-05/2.303e-05, allocations: 2.281 kB / 0.9809 GB, free: 2.633 MB / 0.9323 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.Resistance): time 0.003398/0.003421, allocations: 3.048 MB / 0.9839 GB, free: 15.57 MB / 0.948 GB Notification: Performance of NFInst.instExpressions: time 0.001558/0.00498, allocations: 1.305 MB / 0.9852 GB, free: 14.26 MB / 0.948 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000112/0.005092, allocations: 7.938 kB / 0.9852 GB, free: 14.25 MB / 0.948 GB Notification: Performance of NFTyping.typeComponents: time 0.0006419/0.005733, allocations: 342.6 kB / 0.9855 GB, free: 13.91 MB / 0.948 GB Notification: Performance of NFTyping.typeBindings: time 0.000278/0.006011, allocations: 151 kB / 0.9857 GB, free: 13.77 MB / 0.948 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002607/0.006272, allocations: 134.2 kB / 0.9858 GB, free: 13.64 MB / 0.948 GB Notification: Performance of NFFlatten.flatten: time 0.000291/0.006563, allocations: 314.8 kB / 0.9861 GB, free: 13.33 MB / 0.948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003132/0.006876, allocations: 184.6 kB / 0.9863 GB, free: 13.15 MB / 0.948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001565/0.007033, allocations: 175.6 kB / 0.9864 GB, free: 12.98 MB / 0.948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003064/0.007339, allocations: 123.6 kB / 0.9866 GB, free: 12.86 MB / 0.948 GB Notification: Performance of NFPackage.collectConstants: time 2.678e-05/0.007366, allocations: 19.94 kB / 0.9866 GB, free: 12.84 MB / 0.948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002032/0.007569, allocations: 155.5 kB / 0.9867 GB, free: 12.68 MB / 0.948 GB Notification: Performance of NFScalarize.scalarize: time 7.179e-05/0.007641, allocations: 91.73 kB / 0.9868 GB, free: 12.59 MB / 0.948 GB Notification: Performance of NFVerifyModel.verify: time 6.076e-05/0.007702, allocations: 71.83 kB / 0.9869 GB, free: 12.52 MB / 0.948 GB Notification: Performance of NFConvertDAE.convert: time 0.0003039/0.008006, allocations: 347 kB / 0.9872 GB, free: 12.18 MB / 0.948 GB Notification: Performance of FrontEnd - DAE generated: time 2.405e-06/0.008008, allocations: 0 / 0.9872 GB, free: 12.18 MB / 0.948 GB Notification: Performance of FrontEnd: time 1.182e-06/0.008009, allocations: 0 / 0.9872 GB, free: 12.18 MB / 0.948 GB Notification: Performance of Transformations before backend: time 4.669e-06/0.008014, allocations: 0 / 0.9872 GB, free: 12.18 MB / 0.948 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.0006009/0.008615, allocations: 459.7 kB / 0.9876 GB, free: 11.7 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 3.649e-05/0.008651, allocations: 8.031 kB / 0.9877 GB, free: 11.7 MB / 0.948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.629e-05/0.008698, allocations: 54.73 kB / 0.9877 GB, free: 11.63 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003292/0.009027, allocations: 84.7 kB / 0.9878 GB, free: 11.55 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002118/0.009239, allocations: 181.5 kB / 0.988 GB, free: 11.35 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.383e-05/0.009252, allocations: 16.75 kB / 0.988 GB, free: 11.33 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.954e-05/0.009272, allocations: 16.38 kB / 0.988 GB, free: 11.32 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003269/0.009599, allocations: 373.3 kB / 0.9883 GB, free: 10.91 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.989e-06/0.009609, allocations: 4.172 kB / 0.9884 GB, free: 10.91 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.816e-05/0.009627, allocations: 16.11 kB / 0.9884 GB, free: 10.89 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.284e-05/0.00965, allocations: 16.38 kB / 0.9884 GB, free: 10.88 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001963/0.009846, allocations: 193 kB / 0.9886 GB, free: 10.69 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008434/0.01069, allocations: 1.035 MB / 0.9896 GB, free: 9.586 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001717/0.01086, allocations: 94.48 kB / 0.9897 GB, free: 9.484 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.947e-05/0.0109, allocations: 36.8 kB / 0.9897 GB, free: 9.445 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 7.084e-06/0.01091, allocations: 0 / 0.9897 GB, free: 9.445 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.957e-05/0.01093, allocations: 34.55 kB / 0.9897 GB, free: 9.402 MB / 0.948 GB Notification: Performance of pre-optimization done (n=7): time 1.002e-06/0.01093, allocations: 0 / 0.9897 GB, free: 9.402 MB / 0.948 GB Notification: Performance of matching and sorting (n=7): time 0.0003105/0.01124, allocations: 154.6 kB / 0.9899 GB, free: 9.242 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.611e-05/0.01126, allocations: 51.41 kB / 0.9899 GB, free: 9.18 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001346/0.0114, allocations: 204.4 kB / 0.9901 GB, free: 8.973 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 1.134e-05/0.01141, allocations: 29.64 kB / 0.9902 GB, free: 8.938 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 9.144e-05/0.0115, allocations: 176.1 kB / 0.9903 GB, free: 8.762 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 1.486e-05/0.01152, allocations: 23.78 kB / 0.9903 GB, free: 8.738 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.957e-05/0.01156, allocations: 37.67 kB / 0.9904 GB, free: 8.695 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 7.779e-05/0.01163, allocations: 326.8 kB / 0.9907 GB, free: 8.367 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.195e-05/0.01168, allocations: 35.98 kB / 0.9907 GB, free: 8.332 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.012e-05/0.01175, allocations: 100.5 kB / 0.9908 GB, free: 8.203 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001181/0.01186, allocations: 156.4 kB / 0.991 GB, free: 8.02 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.01187, allocations: 0 / 0.991 GB, free: 8.02 MB / 0.948 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002189/0.01209, allocations: 194.2 kB / 0.9912 GB, free: 7.82 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.271e-05/0.0121, allocations: 6.969 kB / 0.9912 GB, free: 7.816 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.881e-06/0.0121, allocations: 4 kB / 0.9912 GB, free: 7.812 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001189/0.01222, allocations: 24.84 kB / 0.9912 GB, free: 7.785 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.42e-05/0.01229, allocations: 31.92 kB / 0.9912 GB, free: 7.754 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006786/0.01297, allocations: 1.312 MB / 0.9925 GB, free: 6.328 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.835e-05/0.01303, allocations: 15.95 kB / 0.9925 GB, free: 6.312 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.138e-06/0.01304, allocations: 12 kB / 0.9925 GB, free: 6.301 MB / 0.948 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 8.745e-05/0.01313, allocations: 149.8 kB / 0.9927 GB, free: 6.145 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.144e-05/0.01315, allocations: 15.84 kB / 0.9927 GB, free: 6.129 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.544e-05/0.01317, allocations: 21.47 kB / 0.9927 GB, free: 6.105 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.11e-07/0.01317, allocations: 160 / 0.9927 GB, free: 6.105 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.725e-06/0.01317, allocations: 4 kB / 0.9927 GB, free: 6.102 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.887e-06/0.01318, allocations: 3.984 kB / 0.9927 GB, free: 6.098 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000352/0.01353, allocations: 402.3 kB / 0.9931 GB, free: 5.652 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.303e-06/0.01353, allocations: 0 / 0.9931 GB, free: 5.652 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.833e-05/0.01355, allocations: 4.094 kB / 0.9931 GB, free: 5.648 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.338e-05/0.0136, allocations: 40.64 kB / 0.9931 GB, free: 5.605 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.251e-06/0.01361, allocations: 0 / 0.9931 GB, free: 5.605 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005535/0.01416, allocations: 1.303 MB / 0.9944 GB, free: 4.188 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.91e-07/0.01416, allocations: 0 / 0.9944 GB, free: 4.188 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001362/0.0143, allocations: 212.2 kB / 0.9946 GB, free: 3.961 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 3.427e-05/0.01433, allocations: 19.89 kB / 0.9946 GB, free: 3.941 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.939e-06/0.01434, allocations: 4 kB / 0.9946 GB, free: 3.938 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.853e-05/0.0144, allocations: 0 / 0.9946 GB, free: 3.938 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.5e-05/0.01441, allocations: 7.984 kB / 0.9946 GB, free: 3.93 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.999e-06/0.01442, allocations: 4 kB / 0.9947 GB, free: 3.926 MB / 0.948 GB Notification: Performance of sorting global known variables: time 7.946e-05/0.0145, allocations: 147.2 kB / 0.9948 GB, free: 3.781 MB / 0.948 GB Notification: Performance of sort global known variables: time 6e-08/0.0145, allocations: 0 / 0.9948 GB, free: 3.781 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.0002093/0.01471, allocations: 51.89 kB / 0.9948 GB, free: 3.73 MB / 0.948 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.0003004/0.01501, allocations: 0.7449 MB / 0.9956 GB, free: 2.957 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.0002402/0.01525, allocations: 210.9 kB / 0.9958 GB, free: 2.738 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.01525, allocations: 128 / 0.9958 GB, free: 2.738 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 8.008e-05/0.01533, allocations: 150.6 kB / 0.9959 GB, free: 2.578 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002366/0.01557, allocations: 42.86 kB / 0.996 GB, free: 2.539 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001493/0.01706, allocations: 2.046 MB / 0.998 GB, free: 356 kB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.828e-05/0.01715, allocations: 131.9 kB / 0.9981 GB, free: 208 kB / 0.948 GB Notification: Performance of simCode: alias equations: time 6.289e-05/0.01721, allocations: 25.47 kB / 0.9981 GB, free: 180 kB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.459e-05/0.01728, allocations: 60.47 kB / 0.9982 GB, free: 116 kB / 0.948 GB Notification: Performance of SimCode: time 7.21e-07/0.01728, allocations: 0 / 0.9982 GB, free: 116 kB / 0.948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0174/0.03468, allocations: 4.494 MB / 1.003 GB, free: 11.8 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.885/6.92, allocations: 12.73 kB / 1.003 GB, free: 11.79 MB / 0.9636 GB " [Timeout remaining time 293] (rm -f Buildings_12_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; mkfifo Buildings_12_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; head -c 1048576 < Buildings_12_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe >> ../files/Buildings_12_Buildings.Electrical.DC.Lines.Examples.Resistance.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Electrical.DC.Lines.Examples.Resistance_res.mat --tempDir=temp_Buildings_12_Buildings_Electrical_DC_Lines_Examples_Resistance_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Electrical_DC_Lines_Examples_Resistance.fmu > Buildings_12_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Electrical.DC.Lines.Examples.Resistance_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Electrical_DC_Lines_Examples_Resistance.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Electrical.DC.Lines.Examples.Resistance.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: 10.843952871859074]