Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.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.AC.OnePhase.Sources.Examples.VariablePowerSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|RL.i.1.|RL.i.2.|RL.S.1.|RL.S.2.|generator.S.1.|generator.S.2.|grid.sou.S.1.|grid.sou.S.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource") translateModel(Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|RL.i.1.|RL.i.2.|RL.S.1.|RL.S.2.|generator.S.1.|generator.S.2.|grid.sou.S.1.|grid.sou.S.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001002/0.001003, allocations: 87.42 kB / 15.07 MB, free: 1.082 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.00132/0.00132, allocations: 168.7 kB / 15.95 MB, free: 200 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.51/1.51, allocations: 223.3 MB / 240 MB, free: 5.41 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.524/2.524, allocations: 390.9 MB / 0.666 GB, free: 2.484 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003859/0.0003861, allocations: 16 kB / 0.8154 GB, free: 13.61 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8964/0.8968, allocations: 142.4 MB / 0.9544 GB, free: 7.773 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource): time 0.003723/0.9006, allocations: 2.62 MB / 0.957 GB, free: 5.75 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.003026/0.9037, allocations: 1.61 MB / 0.9586 GB, free: 4.492 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001607/0.9039, allocations: 7.688 kB / 0.9586 GB, free: 4.488 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001829/0.9041, allocations: 31.59 kB / 0.9586 GB, free: 4.461 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0004647/0.9046, allocations: 156.5 kB / 0.9588 GB, free: 4.34 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005886/0.9052, allocations: 182.3 kB / 0.9589 GB, free: 4.207 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0004306/0.9056, allocations: 420.3 kB / 0.9593 GB, free: 3.961 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007106/0.9063, allocations: 383.2 kB / 0.9597 GB, free: 3.668 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002315/0.9066, allocations: 132 kB / 0.9598 GB, free: 3.598 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002972/0.9069, allocations: 168.1 kB / 0.96 GB, free: 3.5 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.955e-05/0.9069, allocations: 17.69 kB / 0.96 GB, free: 3.496 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003478/0.9073, allocations: 143 kB / 0.9601 GB, free: 3.43 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001003/0.9074, allocations: 83.3 kB / 0.9602 GB, free: 3.375 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 7.784e-05/0.9075, allocations: 75.61 kB / 0.9603 GB, free: 3.316 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0004191/0.9079, allocations: 339 kB / 0.9606 GB, free: 3.098 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 6.843e-06/0.9079, allocations: 0.9688 kB / 0.9606 GB, free: 3.098 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.914e-06/0.9079, allocations: 0 / 0.9606 GB, free: 3.098 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.182e-06/0.9079, allocations: 0 / 0.9606 GB, free: 3.098 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: 57 * Number of variables: 57 Notification: Performance of Generate backend data structure: time 0.001123/0.9091, allocations: 0.6097 MB / 0.9612 GB, free: 2.543 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.607e-05/0.9091, allocations: 9 kB / 0.9612 GB, free: 2.543 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006902/0.9098, allocations: 93.69 kB / 0.9613 GB, free: 2.5 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000325/0.9101, allocations: 277.2 kB / 0.9616 GB, free: 2.227 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.688e-05/0.9102, allocations: 13.25 kB / 0.9616 GB, free: 2.219 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.259e-05/0.9102, allocations: 21.75 kB / 0.9616 GB, free: 2.211 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007929/0.911, allocations: 428.7 kB / 0.962 GB, free: 1.938 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.753e-05/0.9111, allocations: 1.062 kB / 0.962 GB, free: 1.938 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.272e-05/0.9111, allocations: 5.906 kB / 0.962 GB, free: 1.934 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.236e-05/0.9112, allocations: 30.5 kB / 0.9621 GB, free: 1.918 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008333/0.912, allocations: 423.5 kB / 0.9625 GB, free: 1.723 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001556/0.9136, allocations: 1.603 MB / 0.964 GB, free: 260 kB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001125/0.9147, allocations: 490.6 kB / 0.9645 GB, free: 15.99 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004491/0.9152, allocations: 212.2 kB / 0.9647 GB, free: 15.88 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001633/0.9153, allocations: 87.81 kB / 0.9648 GB, free: 15.79 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006166/0.916, allocations: 282.3 kB / 0.965 GB, free: 15.6 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=27): time 2.644e-06/0.916, allocations: 0 / 0.965 GB, free: 15.6 MB / 0.7325 GB Notification: Performance of matching and sorting (n=28): time 0.002102/0.9181, allocations: 0.7742 MB / 0.9658 GB, free: 15.14 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.253e-05/0.9182, allocations: 84.42 kB / 0.9659 GB, free: 15.05 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002904/0.9185, allocations: 238.5 kB / 0.9661 GB, free: 14.88 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 5.666e-05/0.9185, allocations: 31.67 kB / 0.9661 GB, free: 14.84 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001472/0.9187, allocations: 165.4 kB / 0.9663 GB, free: 14.69 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 9.221e-05/0.9188, allocations: 91.16 kB / 0.9664 GB, free: 14.61 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.197e-05/0.9188, allocations: 5.375 kB / 0.9664 GB, free: 14.61 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001616/0.919, allocations: 336.8 kB / 0.9667 GB, free: 14.27 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004421/0.9194, allocations: 185.7 kB / 0.9669 GB, free: 14.19 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004816/0.9199, allocations: 253.5 kB / 0.9671 GB, free: 14.02 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004994/0.9204, allocations: 234.6 kB / 0.9674 GB, free: 13.89 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.9205, allocations: 1.094 kB / 0.9674 GB, free: 13.89 MB / 0.7325 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.00124/0.9217, allocations: 0.5529 MB / 0.9679 GB, free: 13.59 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001671/0.9219, allocations: 189.2 kB / 0.9681 GB, free: 13.37 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.206e-05/0.9219, allocations: 1.969 kB / 0.9681 GB, free: 13.37 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002731/0.9222, allocations: 49.91 kB / 0.9681 GB, free: 13.34 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004429/0.9226, allocations: 86.86 kB / 0.9682 GB, free: 13.32 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001665/0.9243, allocations: 1.494 MB / 0.9697 GB, free: 11.84 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003543/0.9247, allocations: 51.95 kB / 0.9697 GB, free: 11.81 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.424e-05/0.9247, allocations: 21.5 kB / 0.9697 GB, free: 11.8 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.514e-05/0.9248, allocations: 5.156 kB / 0.9697 GB, free: 11.8 MB / 0.7325 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001124/0.9259, allocations: 0.5016 MB / 0.9702 GB, free: 11.54 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.816e-06/0.9259, allocations: 6.641 kB / 0.9702 GB, free: 11.54 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001333/0.9261, allocations: 41.09 kB / 0.9703 GB, free: 11.51 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003462/0.9264, allocations: 88.98 kB / 0.9704 GB, free: 11.48 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001393/0.9278, allocations: 1.489 MB / 0.9718 GB, free: 10.01 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003186/0.9282, allocations: 49.78 kB / 0.9719 GB, free: 9.984 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.664e-05/0.9282, allocations: 17.83 kB / 0.9719 GB, free: 9.977 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: 5 ($whenCondition1,$PRE.load.T_start,load.T_start,$PRE.load.count,load.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (36): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 1 * 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%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003153/0.9285, allocations: 231.1 kB / 0.9721 GB, free: 9.762 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.212e-05/0.9286, allocations: 27.86 kB / 0.9721 GB, free: 9.746 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00113/0.9297, allocations: 0.4895 MB / 0.9726 GB, free: 9.469 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.703e-06/0.9297, allocations: 3 kB / 0.9726 GB, free: 9.469 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-06/0.9298, allocations: 1.594 kB / 0.9726 GB, free: 9.469 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.357e-06/0.9298, allocations: 5.453 kB / 0.9726 GB, free: 9.465 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008303/0.9306, allocations: 0.5673 MB / 0.9732 GB, free: 8.953 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.751e-06/0.9306, allocations: 1.094 kB / 0.9732 GB, free: 8.953 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003817/0.931, allocations: 83.55 kB / 0.9733 GB, free: 8.926 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001464/0.9312, allocations: 33.92 kB / 0.9733 GB, free: 8.906 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.151e-05/0.9312, allocations: 18.59 kB / 0.9733 GB, free: 8.891 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001433/0.9326, allocations: 1.402 MB / 0.9747 GB, free: 7.484 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.108e-06/0.9327, allocations: 5.188 kB / 0.9747 GB, free: 7.48 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00126/0.9339, allocations: 0.5612 MB / 0.9752 GB, free: 7.121 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001979/0.9341, allocations: 134.7 kB / 0.9754 GB, free: 6.988 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.564e-05/0.9342, allocations: 11.05 kB / 0.9754 GB, free: 6.98 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003459/0.9346, allocations: 40.02 kB / 0.9754 GB, free: 6.965 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000168/0.9348, allocations: 41.38 kB / 0.9754 GB, free: 6.938 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.252e-05/0.9348, allocations: 6.844 kB / 0.9754 GB, free: 6.938 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0003176/0.9351, allocations: 175.1 kB / 0.9756 GB, free: 6.809 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.3e-07/0.9351, allocations: 1.281 kB / 0.9756 GB, free: 6.809 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.001043/0.9362, allocations: 124.2 kB / 0.9757 GB, free: 6.797 MB / 0.7325 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,load.T_start,load.count) * Number of discrete states: 1 (load.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002299/0.9364, allocations: 124.5 kB / 0.9759 GB, free: 6.688 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.002155/0.9386, allocations: 1.008 MB / 0.9768 GB, free: 6.023 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 4.218e-06/0.9386, allocations: 0 / 0.9768 GB, free: 6.023 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0007074/0.9393, allocations: 346.2 kB / 0.9772 GB, free: 5.805 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004917/0.9398, allocations: 40.44 kB / 0.9772 GB, free: 5.785 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001758/0.9416, allocations: 0.738 MB / 0.9779 GB, free: 5.246 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005397/0.9421, allocations: 0.7844 MB / 0.9787 GB, free: 4.5 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0004011/0.9425, allocations: 97.89 kB / 0.9788 GB, free: 4.461 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001262/0.9427, allocations: 31.45 kB / 0.9788 GB, free: 4.445 MB / 0.7325 GB Notification: Performance of SimCode: time 9.12e-07/0.9427, allocations: 0 / 0.9788 GB, free: 4.445 MB / 0.7325 GB Notification: Performance of Templates: time 0.01078/0.9535, allocations: 4.023 MB / 0.9827 GB, free: 1.309 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.makefile (rm -f Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.sim & ./Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_OnePhase_Sources_Examples_VariablePowerSource.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches