Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Electrical.DC.Sources.Examples.VoltageSource.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.001539/0.001539, allocations: 97.92 kB / 19.73 MB, free: 2.133 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.001821/0.001821, allocations: 219.6 kB / 23.03 MB, free: 4.945 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.469/1.469, allocations: 230.6 MB / 256.8 MB, free: 7.785 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.27/3.27, allocations: 0.49 GB / 0.7959 GB, free: 35.34 MB / 0.6231 GB " [Timeout remaining time 176] 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.Sources.Examples.VoltageSource,fileNamePrefix="Buildings_12_Buildings_Electrical_DC_Sources_Examples_VoltageSource",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Sources.Examples.VoltageSource,fileNamePrefix="Buildings_12_Buildings_Electrical_DC_Sources_Examples_VoltageSource",fmuType="cs",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.001901/0.001901, allocations: 65.3 kB / 1.155 GB, free: 25.4 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3097/0.3116, allocations: 176.1 MB / 1.327 GB, free: 1.52 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sources.Examples.VoltageSource): time 0.005745/0.3174, allocations: 3.192 MB / 1.33 GB, free: 14.32 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.00268/0.3201, allocations: 1.391 MB / 1.331 GB, free: 12.92 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002132/0.3203, allocations: 7.938 kB / 1.331 GB, free: 12.91 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.001166/0.3214, allocations: 330.7 kB / 1.331 GB, free: 12.59 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0004729/0.3219, allocations: 151.2 kB / 1.332 GB, free: 12.44 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004766/0.3224, allocations: 159.5 kB / 1.332 GB, free: 12.28 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0004824/0.3229, allocations: 330.9 kB / 1.332 GB, free: 11.96 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004542/0.3233, allocations: 208 kB / 1.332 GB, free: 11.74 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003156/0.3237, allocations: 155.5 kB / 1.332 GB, free: 11.59 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003311/0.324, allocations: 159.4 kB / 1.333 GB, free: 11.43 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 4.219e-05/0.324, allocations: 16 kB / 1.333 GB, free: 11.42 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003247/0.3243, allocations: 159.6 kB / 1.333 GB, free: 11.26 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0001158/0.3245, allocations: 83.73 kB / 1.333 GB, free: 11.18 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001431/0.3246, allocations: 99.59 kB / 1.333 GB, free: 11.08 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0005705/0.3252, allocations: 374.5 kB / 1.333 GB, free: 10.71 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 6.322e-06/0.3252, allocations: 4 kB / 1.333 GB, free: 10.71 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.222e-06/0.3252, allocations: 0 / 1.333 GB, free: 10.71 MB / 1.029 GB Notification: Performance of Transformations before backend: time 8.736e-06/0.3252, allocations: 0 / 1.333 GB, free: 10.71 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.0009815/0.3262, allocations: 477.4 kB / 1.334 GB, free: 10.21 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.481e-05/0.3262, allocations: 8.031 kB / 1.334 GB, free: 10.21 MB / 1.029 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.291e-05/0.3262, allocations: 4.625 kB / 1.334 GB, free: 10.2 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.049e-05/0.3263, allocations: 66.7 kB / 1.334 GB, free: 10.13 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007032/0.327, allocations: 88.67 kB / 1.334 GB, free: 10.04 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003737/0.3274, allocations: 203.5 kB / 1.334 GB, free: 9.816 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.372e-05/0.3274, allocations: 20.8 kB / 1.334 GB, free: 9.797 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.762e-05/0.3275, allocations: 16.38 kB / 1.334 GB, free: 9.781 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006395/0.3281, allocations: 389.3 kB / 1.334 GB, free: 9.359 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.859e-05/0.3281, allocations: 7.922 kB / 1.334 GB, free: 9.352 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.303e-05/0.3282, allocations: 12 kB / 1.334 GB, free: 9.34 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.478e-05/0.3282, allocations: 16.42 kB / 1.334 GB, free: 9.324 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004057/0.3286, allocations: 209.6 kB / 1.335 GB, free: 9.117 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001633/0.3302, allocations: 1.069 MB / 1.336 GB, free: 7.973 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000432/0.3307, allocations: 122.5 kB / 1.336 GB, free: 7.844 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001004/0.3308, allocations: 48.83 kB / 1.336 GB, free: 7.793 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.391e-05/0.3308, allocations: 3.938 kB / 1.336 GB, free: 7.789 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.239e-05/0.3308, allocations: 30.56 kB / 1.336 GB, free: 7.75 MB / 1.029 GB Notification: Performance of pre-optimization done (n=8): time 1.443e-06/0.3308, allocations: 0 / 1.336 GB, free: 7.75 MB / 1.029 GB Notification: Performance of matching and sorting (n=8): time 0.0005975/0.3314, allocations: 194.2 kB / 1.336 GB, free: 7.551 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.104e-05/0.3315, allocations: 51.41 kB / 1.336 GB, free: 7.488 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002264/0.3317, allocations: 210.9 kB / 1.336 GB, free: 7.273 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.056e-05/0.3317, allocations: 33.7 kB / 1.336 GB, free: 7.234 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001257/0.3318, allocations: 172 kB / 1.337 GB, free: 7.062 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.989e-05/0.3319, allocations: 31.73 kB / 1.337 GB, free: 7.031 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.055e-05/0.3319, allocations: 41.66 kB / 1.337 GB, free: 6.984 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001546/0.3321, allocations: 326.8 kB / 1.337 GB, free: 6.656 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001039/0.3322, allocations: 43.97 kB / 1.337 GB, free: 6.613 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001381/0.3323, allocations: 109.2 kB / 1.337 GB, free: 6.477 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002504/0.3326, allocations: 168.4 kB / 1.337 GB, free: 6.281 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.3326, allocations: 0 / 1.337 GB, free: 6.281 MB / 1.029 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003897/0.333, allocations: 214.2 kB / 1.337 GB, free: 6.062 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.388e-05/0.333, allocations: 4 kB / 1.337 GB, free: 6.059 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.374e-06/0.333, allocations: 4 kB / 1.337 GB, free: 6.055 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000164/0.3332, allocations: 32.86 kB / 1.337 GB, free: 6.02 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000138/0.3333, allocations: 31.92 kB / 1.337 GB, free: 5.988 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00119/0.3345, allocations: 1.33 MB / 1.339 GB, free: 4.547 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001486/0.3346, allocations: 19.92 kB / 1.339 GB, free: 4.527 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.637e-05/0.3347, allocations: 8 kB / 1.339 GB, free: 4.52 MB / 1.029 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 (18): * Single equations (assignments): 17 * 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.0001586/0.3348, allocations: 150.2 kB / 1.339 GB, free: 4.363 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.237e-05/0.3349, allocations: 15.91 kB / 1.339 GB, free: 4.348 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.853e-05/0.3349, allocations: 21.39 kB / 1.339 GB, free: 4.324 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.457e-06/0.3349, allocations: 4.125 kB / 1.339 GB, free: 4.32 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.825e-06/0.3349, allocations: 4 kB / 1.339 GB, free: 4.316 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.715e-06/0.3349, allocations: 0 / 1.339 GB, free: 4.316 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006554/0.3356, allocations: 446.2 kB / 1.339 GB, free: 3.828 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.524e-06/0.3356, allocations: 4 kB / 1.339 GB, free: 3.824 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.935e-05/0.3356, allocations: 11.98 kB / 1.339 GB, free: 3.812 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.912e-05/0.3357, allocations: 28.78 kB / 1.339 GB, free: 3.781 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.487e-05/0.3357, allocations: 7.938 kB / 1.339 GB, free: 3.773 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0012/0.3369, allocations: 1.306 MB / 1.341 GB, free: 2.352 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.3369, allocations: 0 / 1.341 GB, free: 2.352 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003296/0.3373, allocations: 248.1 kB / 1.341 GB, free: 2.09 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 6.674e-05/0.3373, allocations: 27.83 kB / 1.341 GB, free: 2.062 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.334e-05/0.3374, allocations: 0 / 1.341 GB, free: 2.062 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001313/0.3375, allocations: 4.156 kB / 1.341 GB, free: 2.059 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.233e-05/0.3375, allocations: 15.98 kB / 1.341 GB, free: 2.043 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.879e-06/0.3376, allocations: 3.938 kB / 1.341 GB, free: 2.039 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001669/0.3377, allocations: 152.4 kB / 1.341 GB, free: 1.891 MB / 1.029 GB Notification: Performance of sort global known variables: time 9e-08/0.3377, allocations: 0 / 1.341 GB, free: 1.891 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.000389/0.3381, allocations: 55.89 kB / 1.341 GB, free: 1.836 MB / 1.029 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 (7): * Single equations (assignments): 6 * 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.0006934/0.3388, allocations: 0.765 MB / 1.342 GB, free: 1.039 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.000515/0.3393, allocations: 230.5 kB / 1.342 GB, free: 0.8008 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.3393, allocations: 0 / 1.342 GB, free: 0.8008 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0002418/0.3396, allocations: 155.2 kB / 1.342 GB, free: 0.6367 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004163/0.34, allocations: 54.75 kB / 1.342 GB, free: 0.5859 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002868/0.3428, allocations: 2.162 MB / 1.345 GB, free: 14.28 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001605/0.343, allocations: 144.2 kB / 1.345 GB, free: 14.12 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 0.0001247/0.3431, allocations: 33.45 kB / 1.345 GB, free: 14.09 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.861e-05/0.3432, allocations: 59.42 kB / 1.345 GB, free: 14.03 MB / 1.045 GB Notification: Performance of SimCode: time 4.4e-07/0.3432, allocations: 0 / 1.345 GB, free: 14.03 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02949/0.3727, allocations: 4.402 MB / 1.349 GB, free: 9.828 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.73/12.11, allocations: 5.531 kB / 1.349 GB, free: 9.824 MB / 1.045 GB " [Timeout remaining time 288] (rm -f Buildings_12_Buildings.Electrical.DC.Sources.Examples.VoltageSource.pipe ; mkfifo Buildings_12_Buildings.Electrical.DC.Sources.Examples.VoltageSource.pipe ; head -c 1048576 < Buildings_12_Buildings.Electrical.DC.Sources.Examples.VoltageSource.pipe >> ../files/Buildings_12_Buildings.Electrical.DC.Sources.Examples.VoltageSource.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Electrical.DC.Sources.Examples.VoltageSource_res.mat --tempDir=temp_Buildings_12_Buildings_Electrical_DC_Sources_Examples_VoltageSource_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Electrical_DC_Sources_Examples_VoltageSource.fmu > Buildings_12_Buildings.Electrical.DC.Sources.Examples.VoltageSource.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Electrical.DC.Sources.Examples.VoltageSource_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Electrical_DC_Sources_Examples_VoltageSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Electrical.DC.Sources.Examples.VoltageSource.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: 18.990170584991574]