Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001818/0.001818, allocations: 105.1 kB / 21.22 MB, free: 0.6289 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002432/0.002432, allocations: 213.5 kB / 24.52 MB, free: 3.91 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.556/1.556, allocations: 230.5 MB / 258.2 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.FourInverters,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_FourInverters",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.FourInverters,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_FourInverters",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002119/0.002119, allocations: 63.89 kB / 378.5 MB, free: 2.84 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2824/0.2845, allocations: 53.4 MB / 431.9 MB, free: 6.473 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.02352/0.3081, allocations: 22.24 MB / 454.1 MB, free: 148 kB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02934/0.3374, allocations: 19.54 MB / 473.7 MB, free: 12.52 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005413/0.3428, allocations: 269.1 kB / 473.9 MB, free: 12.26 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005511/0.3483, allocations: 1.677 MB / 475.6 MB, free: 10.57 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01375/0.3621, allocations: 3.306 MB / 478.9 MB, free: 7.238 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006693/0.3688, allocations: 1.601 MB / 480.5 MB, free: 5.637 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.02244/0.3912, allocations: 12.91 MB / 493.4 MB, free: 8.688 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001452/0.3927, allocations: 0.5082 MB / 493.9 MB, free: 8.145 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00438/0.397, allocations: 2.213 MB / 496.2 MB, free: 5.922 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003844/0.4009, allocations: 2.103 MB / 498.3 MB, free: 3.805 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005927/0.4015, allocations: 132 kB / 498.4 MB, free: 3.676 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004262/0.4057, allocations: 1.296 MB / 499.7 MB, free: 2.379 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000846/0.4066, allocations: 0.6088 MB / 0.4886 GB, free: 1.766 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00318/0.4098, allocations: 1.921 MB / 0.4904 GB, free: 15.83 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0105/0.4203, allocations: 6.742 MB / 0.497 GB, free: 9.059 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.312e-06/0.4203, allocations: 0 / 0.497 GB, free: 9.059 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.4203, allocations: 0 / 0.497 GB, free: 9.059 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0002188/0.4205, allocations: 0 / 0.497 GB, free: 9.059 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 288 * Number of variables: 288 Notification: Performance of Generate backend data structure: time 0.01031/0.4308, allocations: 6.855 MB / 0.5037 GB, free: 2.121 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.758e-05/0.4308, allocations: 8.031 kB / 0.5037 GB, free: 2.113 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.718e-05/0.4309, allocations: 29.94 kB / 0.5038 GB, free: 2.086 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002136/0.4311, allocations: 161.2 kB / 0.5039 GB, free: 1.918 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001059/0.4322, allocations: 0.7802 MB / 0.5047 GB, free: 1.133 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007311/0.4395, allocations: 4.375 MB / 0.5089 GB, free: 12.63 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.713e-05/0.4395, allocations: 66 kB / 0.509 GB, free: 12.57 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002551/0.4398, allocations: 111.8 kB / 0.5091 GB, free: 12.46 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002396/0.4422, allocations: 1.301 MB / 0.5104 GB, free: 11.14 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.279e-05/0.4422, allocations: 3.984 kB / 0.5104 GB, free: 11.14 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001212/0.4423, allocations: 36 kB / 0.5104 GB, free: 11.1 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.453e-05/0.4424, allocations: 35.98 kB / 0.5105 GB, free: 11.07 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00267/0.4451, allocations: 1.492 MB / 0.5119 GB, free: 9.57 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01031/0.4554, allocations: 5.301 MB / 0.5171 GB, free: 4.199 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001681/0.457, allocations: 0.868 MB / 0.5179 GB, free: 3.316 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001615/0.4587, allocations: 1.067 MB / 0.519 GB, free: 2.25 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2458/0.7045, allocations: 27.06 MB / 0.5454 GB, free: 102.8 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008651/0.7053, allocations: 0.5645 MB / 0.546 GB, free: 102.7 MB / 446.1 MB Notification: Performance of pre-optimization done (n=85): time 2.986e-06/0.7054, allocations: 1.594 kB / 0.546 GB, free: 102.7 MB / 446.1 MB Notification: Performance of matching and sorting (n=85): time 0.002565/0.7079, allocations: 1.91 MB / 0.5478 GB, free: 101.4 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.236e-05/0.708, allocations: 60.06 kB / 0.5479 GB, free: 101.4 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00479/0.7127, allocations: 5.593 MB / 0.5533 GB, free: 95.97 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001162/0.7129, allocations: 41.7 kB / 0.5534 GB, free: 95.92 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001542/0.7144, allocations: 2.962 MB / 0.5563 GB, free: 93.04 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001959/0.7146, allocations: 316.8 kB / 0.5566 GB, free: 92.77 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003927/0.715, allocations: 427 kB / 0.557 GB, free: 92.35 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.918e-05/0.715, allocations: 303.8 kB / 0.5573 GB, free: 92.05 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006836/0.7157, allocations: 399.8 kB / 0.5577 GB, free: 91.66 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008497/0.7166, allocations: 1.093 MB / 0.5587 GB, free: 90.25 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001637/0.7182, allocations: 1.615 MB / 0.5603 GB, free: 88.36 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.146e-05/0.7182, allocations: 8 kB / 0.5603 GB, free: 88.35 MB / 446.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.00274/0.721, allocations: 2.243 MB / 0.5625 GB, free: 86.12 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.338e-05/0.721, allocations: 12 kB / 0.5625 GB, free: 86.11 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001465/0.7211, allocations: 164 kB / 0.5627 GB, free: 85.95 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.426e-05/0.7212, allocations: 32 kB / 0.5627 GB, free: 85.92 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000994/0.7222, allocations: 360.4 kB / 0.563 GB, free: 85.57 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.493e-05/0.7222, allocations: 47.8 kB / 0.5631 GB, free: 85.52 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001611/0.7238, allocations: 191.7 kB / 0.5633 GB, free: 85.38 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001563/0.7239, allocations: 124 kB / 0.5634 GB, free: 85.26 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 108 * Number of states: 0 () * Number of discrete variables: 14 (vin.counter,$PRE.vin.counter,v.counter,$PRE.v.counter,v.counter2,$PRE.v.counter2,v.T0,$PRE.v.T0,vin.counter2,$PRE.vin.counter2,vin.T0,$PRE.vin.T0,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (184): * Single equations (assignments): 176 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001065/0.725, allocations: 0.7155 MB / 0.5641 GB, free: 84.55 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005543/0.7256, allocations: 0.753 MB / 0.5648 GB, free: 83.79 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003445/0.729, allocations: 2.156 MB / 0.5669 GB, free: 81.75 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.127e-06/0.729, allocations: 11.98 kB / 0.5669 GB, free: 81.74 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.159e-06/0.729, allocations: 3.828 kB / 0.5669 GB, free: 81.74 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.051e-06/0.729, allocations: 0 / 0.5669 GB, free: 81.74 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004454/0.7335, allocations: 3.484 MB / 0.5703 GB, free: 78.21 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001289/0.7336, allocations: 143.9 kB / 0.5705 GB, free: 78.07 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006787/0.7343, allocations: 151.9 kB / 0.5706 GB, free: 77.92 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.692e-06/0.7343, allocations: 4 kB / 0.5706 GB, free: 77.91 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.682e-05/0.7344, allocations: 63.56 kB / 0.5707 GB, free: 77.86 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.561e-06/0.7344, allocations: 4 kB / 0.5707 GB, free: 77.85 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.7344, allocations: 0 / 0.5707 GB, free: 77.85 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002653/0.737, allocations: 2.194 MB / 0.5728 GB, free: 75.62 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001157/0.7382, allocations: 0.782 MB / 0.5736 GB, free: 74.84 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005495/0.7387, allocations: 20 kB / 0.5736 GB, free: 74.82 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001069/0.7398, allocations: 35.95 kB / 0.5737 GB, free: 74.79 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001974/0.74, allocations: 96.56 kB / 0.5738 GB, free: 74.69 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001163/0.7401, allocations: 75.81 kB / 0.5738 GB, free: 74.62 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003526/0.7437, allocations: 3.604 MB / 0.5773 GB, free: 71.05 MB / 446.1 MB Notification: Performance of sort global known variables: time 7e-08/0.7437, allocations: 0 / 0.5773 GB, free: 71.05 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001991/0.7456, allocations: 1.086 MB / 0.5784 GB, free: 70.03 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (c1.vinternal,c2.vinternal,c3.vinternal,c4.vinternal) * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,vin.T0,vin.counter,vin.counter2,v.T0,v.counter,v.counter2) * Number of discrete states: 4 (vin.counter2,v.counter2,vin.counter,v.counter) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (70): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 6 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003994/0.7496, allocations: 3.844 MB / 0.5822 GB, free: 66.21 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001875/0.7515, allocations: 1.366 MB / 0.5835 GB, free: 64.8 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.7515, allocations: 0 / 0.5835 GB, free: 64.8 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008306/0.7523, allocations: 0.7358 MB / 0.5842 GB, free: 64.02 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003809/0.7562, allocations: 1.18 MB / 0.5854 GB, free: 62.84 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03505/0.7912, allocations: 30.52 MB / 0.6152 GB, free: 31.53 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001251/0.7925, allocations: 2.109 MB / 0.6172 GB, free: 29.39 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001758/0.7942, allocations: 0.6846 MB / 0.6179 GB, free: 28.7 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001669/0.7959, allocations: 2.397 MB / 0.6202 GB, free: 26.31 MB / 446.1 MB Notification: Performance of SimCode: time 1.042e-06/0.7959, allocations: 0 / 0.6202 GB, free: 26.31 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.205/1.001, allocations: 117.1 MB / 0.7346 GB, free: 5.906 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 29.51/30.51, allocations: 6.047 kB / 0.7346 GB, free: 5.902 MB / 0.5294 GB " [Timeout remaining time 629] (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Spice3_Examples_FourInverters_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Spice3_Examples_FourInverters.fmu > Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/FourInverters/FourInverters.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 658] Reference file matches [Calling sys.exit(0), Time elapsed: 36.567619330016896]