Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002079/0.002079, allocations: 107.5 kB / 20.44 MB, free: 1.188 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002124/0.002124, allocations: 193.7 kB / 23.71 MB, free: 4.406 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.471/1.471, allocations: 225.7 MB / 252.5 MB, free: 12.8 MB / 206.1 MB " [Timeout remaining time 178] 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: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001631/0.001631, allocations: 47.92 kB / 370.4 MB, free: 9.656 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2434/0.245, allocations: 52.18 MB / 422.6 MB, free: 14.36 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01534/0.2604, allocations: 12.89 MB / 435.5 MB, free: 1.41 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02576/0.2861, allocations: 17.93 MB / 453.4 MB, free: 15.41 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002301/0.2884, allocations: 134.5 kB / 453.5 MB, free: 15.28 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003384/0.2918, allocations: 1.162 MB / 454.7 MB, free: 14.11 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008232/0.3, allocations: 2.397 MB / 457.1 MB, free: 11.7 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004858/0.3049, allocations: 1.418 MB / 458.5 MB, free: 10.27 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01114/0.316, allocations: 6.649 MB / 465.1 MB, free: 3.605 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000704/0.3167, allocations: 258.2 kB / 465.4 MB, free: 3.324 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001987/0.3187, allocations: 1.194 MB / 466.6 MB, free: 2.125 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001605/0.3203, allocations: 1.094 MB / 467.7 MB, free: 1.023 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002298/0.3206, allocations: 76 kB / 467.8 MB, free: 0.9492 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003543/0.3241, allocations: 1.198 MB / 469 MB, free: 15.75 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000402/0.3245, allocations: 341.5 kB / 469.3 MB, free: 15.41 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001374/0.3259, allocations: 1.052 MB / 470.3 MB, free: 14.36 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006313/0.3322, allocations: 4.036 MB / 474.4 MB, free: 10.3 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.274e-06/0.3322, allocations: 3.984 kB / 474.4 MB, free: 10.3 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.3322, allocations: 0 / 474.4 MB, free: 10.3 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.463e-05/0.3323, allocations: 0 / 474.4 MB, free: 10.3 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.006393/0.3387, allocations: 3.882 MB / 478.3 MB, free: 6.355 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.78e-05/0.3387, allocations: 12.03 kB / 478.3 MB, free: 6.344 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001416/0.3389, allocations: 106.4 kB / 478.4 MB, free: 6.23 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005879/0.3395, allocations: 433.2 kB / 478.8 MB, free: 5.805 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004332/0.3438, allocations: 2.353 MB / 481.2 MB, free: 3.359 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.597e-05/0.3438, allocations: 37 kB / 481.2 MB, free: 3.32 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000139/0.344, allocations: 55.95 kB / 481.2 MB, free: 3.266 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001519/0.3455, allocations: 0.7304 MB / 482 MB, free: 2.531 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.746e-05/0.3455, allocations: 4 kB / 482 MB, free: 2.527 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.133e-05/0.3456, allocations: 20 kB / 482 MB, free: 2.508 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.828e-05/0.3456, allocations: 27.92 kB / 482 MB, free: 2.48 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001697/0.3473, allocations: 0.8124 MB / 482.8 MB, free: 1.668 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005912/0.3532, allocations: 2.895 MB / 485.7 MB, free: 14.7 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001249/0.3545, allocations: 0.5241 MB / 486.3 MB, free: 14.17 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009953/0.3555, allocations: 0.5614 MB / 486.8 MB, free: 13.61 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.027/0.3825, allocations: 13.7 MB / 0.4888 GB, free: 15.52 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008475/0.3833, allocations: 365.6 kB / 0.4891 GB, free: 15.14 MB / 414.1 MB Notification: Performance of pre-optimization done (n=49): time 2.745e-06/0.3833, allocations: 0 / 0.4891 GB, free: 15.14 MB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.002504/0.3858, allocations: 1.122 MB / 0.4902 GB, free: 14.02 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.418e-05/0.3859, allocations: 63.39 kB / 0.4903 GB, free: 13.94 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004367/0.3903, allocations: 3.106 MB / 0.4933 GB, free: 10.84 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 9.116e-05/0.3903, allocations: 41.7 kB / 0.4934 GB, free: 10.79 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001571/0.3919, allocations: 1.578 MB / 0.4949 GB, free: 9.203 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002036/0.3921, allocations: 182.5 kB / 0.4951 GB, free: 9.023 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003359/0.3925, allocations: 230.4 kB / 0.4953 GB, free: 8.793 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001815/0.3926, allocations: 334 kB / 0.4956 GB, free: 8.461 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006356/0.3933, allocations: 245.8 kB / 0.4959 GB, free: 8.219 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009545/0.3942, allocations: 0.6017 MB / 0.4964 GB, free: 7.441 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001626/0.3959, allocations: 0.9051 MB / 0.4973 GB, free: 6.363 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.113e-05/0.3959, allocations: 4 kB / 0.4973 GB, free: 6.359 MB / 414.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.00246/0.3983, allocations: 1.259 MB / 0.4986 GB, free: 5.09 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.526e-05/0.3984, allocations: 12 kB / 0.4986 GB, free: 5.078 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001238/0.3985, allocations: 80 kB / 0.4986 GB, free: 5 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.188e-05/0.3985, allocations: 16 kB / 0.4987 GB, free: 4.984 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007463/0.3993, allocations: 199.7 kB / 0.4989 GB, free: 4.789 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.922e-05/0.3993, allocations: 28.14 kB / 0.4989 GB, free: 4.762 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001028/0.4003, allocations: 119.2 kB / 0.499 GB, free: 4.645 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000112/0.4004, allocations: 64 kB / 0.4991 GB, free: 4.582 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * 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 (102): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.0008435/0.4013, allocations: 461.4 kB / 0.4995 GB, free: 4.121 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004404/0.4017, allocations: 421.3 kB / 0.4999 GB, free: 3.707 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002716/0.4044, allocations: 1.211 MB / 0.5011 GB, free: 2.492 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.566e-06/0.4044, allocations: 4 kB / 0.5011 GB, free: 2.488 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.498e-06/0.4044, allocations: 0 / 0.5011 GB, free: 2.488 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.89e-06/0.4044, allocations: 0 / 0.5011 GB, free: 2.488 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003713/0.4082, allocations: 2.064 MB / 0.5031 GB, free: 368 kB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001052/0.4083, allocations: 68 kB / 0.5032 GB, free: 300 kB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004899/0.4087, allocations: 95.84 kB / 0.5033 GB, free: 204 kB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.683e-06/0.4088, allocations: 8.062 kB / 0.5033 GB, free: 196 kB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.277e-05/0.4088, allocations: 32 kB / 0.5033 GB, free: 164 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.3e-06/0.4088, allocations: 4 kB / 0.5033 GB, free: 160 kB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.614e-06/0.4088, allocations: 0 / 0.5033 GB, free: 160 kB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002455/0.4113, allocations: 1.347 MB / 0.5046 GB, free: 14.78 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009153/0.4122, allocations: 435.1 kB / 0.505 GB, free: 14.36 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002913/0.4125, allocations: 8 kB / 0.505 GB, free: 14.35 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000729/0.4132, allocations: 35.95 kB / 0.5051 GB, free: 14.31 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001492/0.4134, allocations: 63.88 kB / 0.5051 GB, free: 14.25 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.284e-05/0.4134, allocations: 40.05 kB / 0.5052 GB, free: 14.21 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002677/0.4161, allocations: 2.01 MB / 0.5071 GB, free: 12.21 MB / 430.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4161, allocations: 0 / 0.5071 GB, free: 12.21 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001321/0.4174, allocations: 0.593 MB / 0.5077 GB, free: 11.61 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (c1.vinternal,c2.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 (42): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.003828/0.4213, allocations: 2.573 MB / 0.5102 GB, free: 9.012 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001678/0.4229, allocations: 0.7789 MB / 0.511 GB, free: 8.207 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.4229, allocations: 0 / 0.511 GB, free: 8.207 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008068/0.4237, allocations: 435.2 kB / 0.5114 GB, free: 7.758 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002648/0.4264, allocations: 0.6398 MB / 0.512 GB, free: 7.113 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02591/0.4523, allocations: 17.05 MB / 0.5287 GB, free: 5.547 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001181/0.4535, allocations: 1.162 MB / 0.5298 GB, free: 4.348 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001131/0.4546, allocations: 361.3 kB / 0.5302 GB, free: 3.988 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001498/0.4561, allocations: 1.265 MB / 0.5314 GB, free: 2.723 MB / 446.1 MB Notification: Performance of SimCode: time 8.92e-07/0.4561, allocations: 0 / 0.5314 GB, free: 2.723 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2781/0.7342, allocations: 66.49 MB / 0.5963 GB, free: 57.34 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.68/16.41, allocations: 10.06 kB / 0.5963 GB, free: 57.33 MB / 446.1 MB " [Timeout remaining time 643] (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel.fmu > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/InvertersExtendedModel/InvertersExtendedModel.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 19.687536783050746]