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.001312/0.001312, allocations: 101.7 kB / 16.45 MB, free: 6.449 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.001378/0.001378, allocations: 210.4 kB / 19.43 MB, free: 3.637 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.401/1.401, allocations: 230.6 MB / 252.8 MB, free: 9.121 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.084/3.084, allocations: 0.49 GB / 0.7916 GB, free: 33.5 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.Sources.Examples.VoltageSource,fileNamePrefix="Buildings_12_Buildings_Electrical_DC_Sources_Examples_VoltageSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Sources.Examples.VoltageSource,fileNamePrefix="Buildings_12_Buildings_Electrical_DC_Sources_Examples_VoltageSource",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.001971/0.001971, allocations: 75.8 kB / 1.149 GB, free: 26.31 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3499/0.3518, allocations: 176.1 MB / 1.321 GB, free: 3.328 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sources.Examples.VoltageSource): time 0.005382/0.3572, allocations: 3.265 MB / 1.324 GB, free: 48 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.002502/0.3597, allocations: 1.468 MB / 1.325 GB, free: 14.57 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000128/0.3598, allocations: 4 kB / 1.325 GB, free: 14.57 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.001045/0.3609, allocations: 347.3 kB / 1.326 GB, free: 14.23 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0003643/0.3612, allocations: 143.2 kB / 1.326 GB, free: 14.09 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004139/0.3617, allocations: 165.3 kB / 1.326 GB, free: 13.93 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0004383/0.3621, allocations: 338.7 kB / 1.326 GB, free: 13.59 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004307/0.3625, allocations: 204 kB / 1.327 GB, free: 13.39 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002645/0.3628, allocations: 147.5 kB / 1.327 GB, free: 13.25 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002931/0.3631, allocations: 163.4 kB / 1.327 GB, free: 13.09 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 3.667e-05/0.3631, allocations: 20 kB / 1.327 GB, free: 13.07 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003175/0.3634, allocations: 175.6 kB / 1.327 GB, free: 12.89 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0001147/0.3636, allocations: 83.73 kB / 1.327 GB, free: 12.81 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001358/0.3637, allocations: 127.4 kB / 1.327 GB, free: 12.69 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0004984/0.3642, allocations: 366.6 kB / 1.328 GB, free: 12.33 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.3642, allocations: 0 / 1.328 GB, free: 12.33 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.252e-06/0.3642, allocations: 0 / 1.328 GB, free: 12.33 MB / 1.029 GB Notification: Performance of Transformations before backend: time 7.113e-06/0.3642, allocations: 0 / 1.328 GB, free: 12.33 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.0009594/0.3652, allocations: 0.5493 MB / 1.328 GB, free: 11.73 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.429e-05/0.3652, allocations: 15.98 kB / 1.328 GB, free: 11.71 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.013e-05/0.3653, allocations: 54.73 kB / 1.328 GB, free: 11.65 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006578/0.3659, allocations: 92.66 kB / 1.328 GB, free: 11.56 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000356/0.3663, allocations: 265.3 kB / 1.329 GB, free: 11.26 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.621e-05/0.3663, allocations: 12.81 kB / 1.329 GB, free: 11.25 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.973e-05/0.3664, allocations: 20.38 kB / 1.329 GB, free: 11.23 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005394/0.3669, allocations: 308.5 kB / 1.329 GB, free: 10.9 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.182e-05/0.3669, allocations: 3.938 kB / 1.329 GB, free: 10.9 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.356e-05/0.3669, allocations: 19.98 kB / 1.329 GB, free: 10.88 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.597e-05/0.367, allocations: 16.42 kB / 1.329 GB, free: 10.86 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003957/0.3674, allocations: 209.6 kB / 1.329 GB, free: 10.66 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001763/0.3691, allocations: 1.502 MB / 1.331 GB, free: 8.992 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004504/0.3696, allocations: 199.6 kB / 1.331 GB, free: 8.77 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.714e-05/0.3697, allocations: 36.84 kB / 1.331 GB, free: 8.73 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.6e-05/0.3697, allocations: 4 kB / 1.331 GB, free: 8.727 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.298e-05/0.3697, allocations: 38.62 kB / 1.331 GB, free: 8.68 MB / 1.029 GB Notification: Performance of pre-optimization done (n=8): time 1.282e-06/0.3697, allocations: 0 / 1.331 GB, free: 8.68 MB / 1.029 GB Notification: Performance of matching and sorting (n=8): time 0.0006105/0.3704, allocations: 267.5 kB / 1.331 GB, free: 8.391 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.142e-05/0.3704, allocations: 59.28 kB / 1.331 GB, free: 8.32 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002283/0.3706, allocations: 210.9 kB / 1.331 GB, free: 8.105 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.051e-05/0.3706, allocations: 25.7 kB / 1.331 GB, free: 8.074 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001371/0.3708, allocations: 180 kB / 1.332 GB, free: 7.891 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.849e-05/0.3708, allocations: 31.73 kB / 1.332 GB, free: 7.859 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.71e-05/0.3709, allocations: 41.67 kB / 1.332 GB, free: 7.812 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.00016/0.371, allocations: 322.8 kB / 1.332 GB, free: 7.488 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001028/0.3711, allocations: 43.97 kB / 1.332 GB, free: 7.445 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001476/0.3713, allocations: 116.5 kB / 1.332 GB, free: 7.301 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002599/0.3715, allocations: 172.4 kB / 1.332 GB, free: 7.102 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/0.3715, allocations: 0 / 1.332 GB, free: 7.102 MB / 1.029 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003925/0.3719, allocations: 210.4 kB / 1.332 GB, free: 6.887 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.416e-05/0.372, allocations: 8 kB / 1.332 GB, free: 6.879 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.163e-06/0.372, allocations: 4 kB / 1.332 GB, free: 6.875 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001588/0.3721, allocations: 28.78 kB / 1.332 GB, free: 6.844 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001421/0.3723, allocations: 27.98 kB / 1.333 GB, free: 6.816 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001273/0.3735, allocations: 1.425 MB / 1.334 GB, free: 5.25 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000138/0.3737, allocations: 19.83 kB / 1.334 GB, free: 5.23 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.584e-05/0.3737, allocations: 8 kB / 1.334 GB, free: 5.223 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.0001673/0.3739, allocations: 163.5 kB / 1.334 GB, free: 5.055 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.58e-05/0.3739, allocations: 19.86 kB / 1.334 GB, free: 5.035 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.873e-05/0.3739, allocations: 17.41 kB / 1.334 GB, free: 5.012 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.192e-06/0.3739, allocations: 0 / 1.334 GB, free: 5.012 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.176e-06/0.3739, allocations: 4 kB / 1.334 GB, free: 5.008 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.18e-06/0.374, allocations: 3.984 kB / 1.334 GB, free: 5.004 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006737/0.3746, allocations: 487.3 kB / 1.335 GB, free: 4.469 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.674e-06/0.3746, allocations: 3.938 kB / 1.335 GB, free: 4.465 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.503e-05/0.3747, allocations: 15.98 kB / 1.335 GB, free: 4.449 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.213e-05/0.3748, allocations: 20.84 kB / 1.335 GB, free: 4.426 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.357e-06/0.3748, allocations: 3.938 kB / 1.335 GB, free: 4.422 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001151/0.3759, allocations: 1.425 MB / 1.336 GB, free: 2.855 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.3759, allocations: 0 / 1.336 GB, free: 2.855 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003419/0.3763, allocations: 248.3 kB / 1.336 GB, free: 2.594 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 9.748e-05/0.3764, allocations: 101 kB / 1.336 GB, free: 2.477 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.863e-05/0.3764, allocations: 0 / 1.336 GB, free: 2.477 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00012/0.3765, allocations: 8 kB / 1.336 GB, free: 2.469 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.954e-05/0.3766, allocations: 7.984 kB / 1.336 GB, free: 2.461 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.516e-06/0.3766, allocations: 4 kB / 1.336 GB, free: 2.457 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001527/0.3767, allocations: 160.1 kB / 1.337 GB, free: 2.301 MB / 1.029 GB Notification: Performance of sort global known variables: time 7e-08/0.3767, allocations: 0 / 1.337 GB, free: 2.301 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003309/0.3771, allocations: 55.89 kB / 1.337 GB, free: 2.246 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.0006454/0.3777, allocations: 0.7639 MB / 1.337 GB, free: 1.449 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0004447/0.3781, allocations: 226.5 kB / 1.338 GB, free: 1.215 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 6.141e-06/0.3782, allocations: 4 kB / 1.338 GB, free: 1.211 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0002269/0.3784, allocations: 162.5 kB / 1.338 GB, free: 1.039 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003532/0.3787, allocations: 42.39 kB / 1.338 GB, free: 1 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002669/0.3814, allocations: 2.156 MB / 1.34 GB, free: 14.71 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004041/0.3818, allocations: 0.7515 MB / 1.341 GB, free: 13.93 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 0.0001055/0.3819, allocations: 37.45 kB / 1.341 GB, free: 13.89 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.473e-05/0.382, allocations: 59.41 kB / 1.341 GB, free: 13.84 MB / 1.045 GB Notification: Performance of SimCode: time 3.1e-07/0.382, allocations: 0 / 1.341 GB, free: 13.84 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03133/0.4133, allocations: 4.083 MB / 1.345 GB, free: 9.898 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.89/10.3, allocations: 6.25 kB / 1.345 GB, free: 9.895 MB / 1.045 GB " [Timeout remaining time 290] (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: 16.738344933837652]