Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.DC.Sources.Examples.VoltageSource.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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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: translateModel(Buildings.Electrical.DC.Sources.Examples.VoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.V|sen.I",fileNamePrefix="Buildings_9_Buildings.Electrical.DC.Sources.Examples.VoltageSource") translateModel(Buildings.Electrical.DC.Sources.Examples.VoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.V|sen.I",fileNamePrefix="Buildings_9_Buildings.Electrical.DC.Sources.Examples.VoltageSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001138/0.001138, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.001531/0.001531, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.555/1.555, allocations: 223.3 MB / 240 MB, free: 5.438 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.646/2.646, allocations: 390.9 MB / 0.666 GB, free: 2.504 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003934/0.0003938, allocations: 8 kB / 0.8153 GB, free: 13.66 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8242/0.8246, allocations: 142.4 MB / 0.9544 GB, free: 7.91 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sources.Examples.VoltageSource): time 0.003348/0.8281, allocations: 2.785 MB / 0.9572 GB, free: 5.773 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001752/0.8298, allocations: 1.278 MB / 0.9584 GB, free: 4.77 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001269/0.83, allocations: 3.531 kB / 0.9584 GB, free: 4.77 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.000172/0.8302, allocations: 45.2 kB / 0.9584 GB, free: 4.73 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0003285/0.8305, allocations: 116.7 kB / 0.9586 GB, free: 4.641 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002808/0.8308, allocations: 113 kB / 0.9587 GB, free: 4.559 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0003483/0.8311, allocations: 370 kB / 0.959 GB, free: 4.348 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003011/0.8315, allocations: 237.3 kB / 0.9592 GB, free: 4.164 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001689/0.8316, allocations: 112.7 kB / 0.9594 GB, free: 4.105 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002713/0.8319, allocations: 136.5 kB / 0.9595 GB, free: 4.031 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.142e-05/0.832, allocations: 10.12 kB / 0.9595 GB, free: 4.031 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001881/0.8321, allocations: 86.06 kB / 0.9596 GB, free: 3.992 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 7.884e-05/0.8322, allocations: 73.75 kB / 0.9596 GB, free: 3.945 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.356e-05/0.8323, allocations: 71.17 kB / 0.9597 GB, free: 3.891 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002819/0.8326, allocations: 260.3 kB / 0.96 GB, free: 3.727 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 6.102e-06/0.8326, allocations: 0 / 0.96 GB, free: 3.727 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.442e-06/0.8326, allocations: 0.7812 kB / 0.96 GB, free: 3.727 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.041e-06/0.8326, allocations: 0 / 0.96 GB, free: 3.727 MB / 0.7169 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.0007221/0.8333, allocations: 0.5108 MB / 0.9605 GB, free: 3.246 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.533e-05/0.8334, allocations: 8.25 kB / 0.9605 GB, free: 3.246 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005604/0.834, allocations: 78.39 kB / 0.9605 GB, free: 3.215 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002494/0.8342, allocations: 240.9 kB / 0.9608 GB, free: 2.969 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.296e-05/0.8343, allocations: 20.67 kB / 0.9608 GB, free: 2.953 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.493e-05/0.8343, allocations: 17.75 kB / 0.9608 GB, free: 2.949 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004784/0.8348, allocations: 309.7 kB / 0.9611 GB, free: 2.742 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.302e-05/0.8348, allocations: 5.078 kB / 0.9611 GB, free: 2.738 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.851e-05/0.8348, allocations: 13.98 kB / 0.9611 GB, free: 2.727 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.613e-05/0.8349, allocations: 14.47 kB / 0.9611 GB, free: 2.727 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003917/0.8353, allocations: 216.7 kB / 0.9613 GB, free: 2.621 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00136/0.8366, allocations: 1.502 MB / 0.9628 GB, free: 1.148 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004045/0.8371, allocations: 207.9 kB / 0.963 GB, free: 0.9805 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.744e-05/0.8372, allocations: 47.19 kB / 0.9631 GB, free: 0.9531 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.647e-05/0.8372, allocations: 1.156 kB / 0.9631 GB, free: 0.9531 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.522e-05/0.8372, allocations: 35.98 kB / 0.9631 GB, free: 0.9102 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=8): time 1.263e-06/0.8372, allocations: 0 / 0.9631 GB, free: 0.9102 MB / 0.7169 GB Notification: Performance of matching and sorting (n=8): time 0.0005669/0.8378, allocations: 278.2 kB / 0.9634 GB, free: 0.6953 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.025e-05/0.8378, allocations: 52.53 kB / 0.9634 GB, free: 0.6328 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001952/0.838, allocations: 199.3 kB / 0.9636 GB, free: 488 kB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.329e-05/0.8381, allocations: 31.08 kB / 0.9636 GB, free: 452 kB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 9.023e-05/0.8382, allocations: 176.3 kB / 0.9638 GB, free: 284 kB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.325e-05/0.8382, allocations: 23.75 kB / 0.9638 GB, free: 264 kB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.016e-05/0.8382, allocations: 4.75 kB / 0.9638 GB, free: 260 kB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 0.0001266/0.8383, allocations: 330.8 kB / 0.9641 GB, free: 15.93 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001248/0.8385, allocations: 45.5 kB / 0.9642 GB, free: 15.91 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001907/0.8387, allocations: 118 kB / 0.9643 GB, free: 15.79 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001705/0.8389, allocations: 61.33 kB / 0.9643 GB, free: 15.77 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.921e-06/0.8389, allocations: 4.938 kB / 0.9644 GB, free: 15.76 MB / 0.7325 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0004765/0.8394, allocations: 222.2 kB / 0.9646 GB, free: 15.63 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.347e-05/0.8394, allocations: 6.469 kB / 0.9646 GB, free: 15.63 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.498e-06/0.8394, allocations: 2.281 kB / 0.9646 GB, free: 15.63 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000201/0.8396, allocations: 31.09 kB / 0.9646 GB, free: 15.61 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001484/0.8398, allocations: 32.73 kB / 0.9646 GB, free: 15.6 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001245/0.841, allocations: 1.321 MB / 0.9659 GB, free: 14.25 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001471/0.8412, allocations: 31.92 kB / 0.966 GB, free: 14.22 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.856e-05/0.8412, allocations: 9.906 kB / 0.966 GB, free: 14.22 MB / 0.7325 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001575/0.8414, allocations: 148.4 kB / 0.9661 GB, free: 14.08 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.181e-05/0.8414, allocations: 16.44 kB / 0.9661 GB, free: 14.07 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.885e-05/0.8415, allocations: 21.3 kB / 0.9661 GB, free: 14.05 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.474e-06/0.8415, allocations: 5.094 kB / 0.9661 GB, free: 14.05 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.436e-06/0.8415, allocations: 1 kB / 0.9661 GB, free: 14.05 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.946e-06/0.8415, allocations: 0 / 0.9661 GB, free: 14.05 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006451/0.8421, allocations: 493.3 kB / 0.9666 GB, free: 13.62 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.8422, allocations: 0 / 0.9666 GB, free: 13.62 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.722e-05/0.8422, allocations: 13.61 kB / 0.9666 GB, free: 13.61 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.645e-05/0.8423, allocations: 28 kB / 0.9667 GB, free: 13.59 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.346e-05/0.8423, allocations: 5.016 kB / 0.9667 GB, free: 13.59 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008901/0.8432, allocations: 1.322 MB / 0.968 GB, free: 12.23 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.8433, allocations: 0 / 0.968 GB, free: 12.23 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003101/0.8436, allocations: 240.4 kB / 0.9682 GB, free: 12.03 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 7.928e-05/0.8437, allocations: 108.4 kB / 0.9683 GB, free: 11.91 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.137e-05/0.8437, allocations: 1.031 kB / 0.9683 GB, free: 11.91 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001199/0.8438, allocations: 10.45 kB / 0.9683 GB, free: 11.91 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.866e-05/0.8439, allocations: 6.031 kB / 0.9683 GB, free: 11.91 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.323e-06/0.8439, allocations: 2.031 kB / 0.9683 GB, free: 11.91 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0001352/0.844, allocations: 148.8 kB / 0.9684 GB, free: 11.8 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.1e-07/0.844, allocations: 0 / 0.9684 GB, free: 11.8 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0003435/0.8444, allocations: 55.69 kB / 0.9685 GB, free: 11.79 MB / 0.7325 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001254/0.8445, allocations: 104.1 kB / 0.9686 GB, free: 11.69 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0004376/0.8449, allocations: 236.1 kB / 0.9688 GB, free: 11.52 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/0.845, allocations: 1.938 kB / 0.9688 GB, free: 11.52 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0002103/0.8452, allocations: 166.9 kB / 0.969 GB, free: 11.38 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003849/0.8456, allocations: 35.33 kB / 0.969 GB, free: 11.36 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007463/0.8463, allocations: 487.5 kB / 0.9695 GB, free: 11 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003369/0.8467, allocations: 0.7526 MB / 0.9702 GB, free: 10.27 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001128/0.8468, allocations: 30.95 kB / 0.9702 GB, free: 10.25 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.313e-05/0.8469, allocations: 15.5 kB / 0.9703 GB, free: 10.25 MB / 0.7325 GB Notification: Performance of SimCode: time 2.7e-07/0.8469, allocations: 0 / 0.9703 GB, free: 10.25 MB / 0.7325 GB Notification: Performance of Templates: time 0.00546/0.8523, allocations: 1.761 MB / 0.972 GB, free: 9.379 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Electrical.DC.Sources.Examples.VoltageSource.makefile (rm -f Buildings_9_Buildings.Electrical.DC.Sources.Examples.VoltageSource.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Sources.Examples.VoltageSource.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Sources.Examples.VoltageSource.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Sources.Examples.VoltageSource.sim & ./Buildings_9_Buildings.Electrical.DC.Sources.Examples.VoltageSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.DC.Sources.Examples.VoltageSource.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.DC.Sources.Examples.VoltageSource_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_DC_Sources_Examples_VoltageSource.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.DC.Sources.Examples.VoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches