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.001614/0.001614, allocations: 108.8 kB / 21.22 MB, free: 0.7305 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.001721/0.001721, allocations: 191.5 kB / 24.51 MB, free: 4.086 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.392/1.392, allocations: 225.6 MB / 253.3 MB, free: 13.03 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001612/0.001612, allocations: 47.92 kB / 371.2 MB, free: 9.844 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2612/0.2628, allocations: 52.19 MB / 423.4 MB, free: 14.6 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.0162/0.279, allocations: 15.38 MB / 438.8 MB, free: 15.16 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02578/0.3048, allocations: 20.81 MB / 459.6 MB, free: 10.26 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002705/0.3075, allocations: 138.5 kB / 459.7 MB, free: 10.12 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003835/0.3114, allocations: 1.274 MB / 461 MB, free: 8.848 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008757/0.3201, allocations: 2.409 MB / 463.4 MB, free: 6.418 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004669/0.3248, allocations: 1.457 MB / 464.9 MB, free: 4.957 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01145/0.3362, allocations: 6.649 MB / 471.5 MB, free: 14.29 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007659/0.337, allocations: 266.2 kB / 471.8 MB, free: 14 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002087/0.3391, allocations: 1.19 MB / 473 MB, free: 12.8 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002094/0.3412, allocations: 1.145 MB / 474.1 MB, free: 11.65 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002525/0.3414, allocations: 76 kB / 474.2 MB, free: 11.58 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004145/0.3456, allocations: 1.483 MB / 475.7 MB, free: 10.09 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004543/0.346, allocations: 329.5 kB / 476 MB, free: 9.77 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001835/0.3479, allocations: 1.428 MB / 477.4 MB, free: 8.332 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006065/0.3539, allocations: 4.005 MB / 481.4 MB, free: 4.309 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.942e-06/0.3539, allocations: 3.938 kB / 481.4 MB, free: 4.305 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.3539, allocations: 0 / 481.4 MB, free: 4.305 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.585e-05/0.354, allocations: 0 / 481.4 MB, free: 4.305 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.006197/0.3602, allocations: 3.882 MB / 485.3 MB, free: 372 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.104e-05/0.3603, allocations: 8.031 kB / 485.3 MB, free: 364 kB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.804e-05/0.3603, allocations: 17 kB / 485.3 MB, free: 348 kB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001284/0.3604, allocations: 102.5 kB / 485.4 MB, free: 236 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005832/0.361, allocations: 433.3 kB / 485.9 MB, free: 15.8 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003799/0.3648, allocations: 2.357 MB / 488.2 MB, free: 13.35 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.957e-05/0.3649, allocations: 40.98 kB / 488.3 MB, free: 13.31 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001332/0.365, allocations: 55.89 kB / 488.3 MB, free: 13.26 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001399/0.3664, allocations: 0.7304 MB / 489 MB, free: 12.52 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.498e-05/0.3664, allocations: 0 / 489 MB, free: 12.52 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.027e-05/0.3665, allocations: 20 kB / 489.1 MB, free: 12.5 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.456e-05/0.3665, allocations: 23.98 kB / 489.1 MB, free: 12.48 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001596/0.3681, allocations: 0.8202 MB / 489.9 MB, free: 11.65 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00546/0.3736, allocations: 3.035 MB / 492.9 MB, free: 8.551 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001209/0.3748, allocations: 0.5242 MB / 493.5 MB, free: 8.016 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009692/0.3757, allocations: 0.5731 MB / 494 MB, free: 7.441 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02542/0.4011, allocations: 13.76 MB / 0.4959 GB, free: 9.289 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008351/0.402, allocations: 365.6 kB / 0.4963 GB, free: 8.918 MB / 414.1 MB Notification: Performance of pre-optimization done (n=49): time 3.106e-06/0.402, allocations: 0 / 0.4963 GB, free: 8.918 MB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.002492/0.4045, allocations: 1.126 MB / 0.4974 GB, free: 7.785 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.95e-05/0.4045, allocations: 63.39 kB / 0.4974 GB, free: 7.711 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004161/0.4087, allocations: 3.087 MB / 0.5004 GB, free: 4.625 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001148/0.4088, allocations: 37.7 kB / 0.5005 GB, free: 4.582 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001464/0.4103, allocations: 1.582 MB / 0.502 GB, free: 2.992 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002244/0.4105, allocations: 174.6 kB / 0.5022 GB, free: 2.82 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003432/0.4108, allocations: 234.3 kB / 0.5024 GB, free: 2.586 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001544/0.411, allocations: 341.9 kB / 0.5027 GB, free: 2.246 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006174/0.4116, allocations: 241.8 kB / 0.503 GB, free: 2.012 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008888/0.4125, allocations: 0.6095 MB / 0.5035 GB, free: 1.223 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001487/0.414, allocations: 0.8974 MB / 0.5044 GB, free: 156 kB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.755e-06/0.414, allocations: 4 kB / 0.5044 GB, free: 152 kB / 414.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002664/0.4167, allocations: 1.262 MB / 0.5057 GB, free: 14.88 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.374e-05/0.4167, allocations: 14.97 kB / 0.5057 GB, free: 14.86 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001203/0.4168, allocations: 84 kB / 0.5058 GB, free: 14.78 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.42e-05/0.4169, allocations: 16.81 kB / 0.5058 GB, free: 14.77 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007079/0.4176, allocations: 203.7 kB / 0.506 GB, free: 14.57 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.864e-05/0.4176, allocations: 27.86 kB / 0.506 GB, free: 14.54 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00106/0.4186, allocations: 111.3 kB / 0.5061 GB, free: 14.43 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001142/0.4188, allocations: 64 kB / 0.5062 GB, free: 14.37 MB / 430.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.0008727/0.4196, allocations: 461.4 kB / 0.5066 GB, free: 13.91 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005335/0.4202, allocations: 413.4 kB / 0.507 GB, free: 13.5 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00271/0.4229, allocations: 1.215 MB / 0.5082 GB, free: 12.28 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.266e-06/0.4229, allocations: 4 kB / 0.5082 GB, free: 12.28 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.581e-06/0.4229, allocations: 0 / 0.5082 GB, free: 12.28 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.52e-06/0.4229, allocations: 4 kB / 0.5082 GB, free: 12.27 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00362/0.4265, allocations: 2.122 MB / 0.5103 GB, free: 10.09 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001001/0.4266, allocations: 71.98 kB / 0.5103 GB, free: 10.02 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004953/0.4271, allocations: 87.86 kB / 0.5104 GB, free: 9.93 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.099e-06/0.4271, allocations: 0 / 0.5104 GB, free: 9.93 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.274e-05/0.4272, allocations: 36 kB / 0.5104 GB, free: 9.895 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.138e-06/0.4272, allocations: 0 / 0.5104 GB, free: 9.895 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.884e-06/0.4272, allocations: 64 / 0.5104 GB, free: 9.895 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002527/0.4297, allocations: 1.347 MB / 0.5118 GB, free: 8.523 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009619/0.4307, allocations: 435 kB / 0.5122 GB, free: 8.098 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00031/0.431, allocations: 8 kB / 0.5122 GB, free: 8.09 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006815/0.4317, allocations: 35.95 kB / 0.5122 GB, free: 8.055 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001517/0.4318, allocations: 63.94 kB / 0.5123 GB, free: 7.992 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.597e-05/0.4319, allocations: 39.98 kB / 0.5123 GB, free: 7.953 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002789/0.4347, allocations: 2.007 MB / 0.5143 GB, free: 5.953 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.4347, allocations: 0 / 0.5143 GB, free: 5.953 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001518/0.4362, allocations: 0.5969 MB / 0.5149 GB, free: 5.355 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.004051/0.4403, allocations: 2.57 MB / 0.5174 GB, free: 2.75 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001776/0.442, allocations: 0.771 MB / 0.5181 GB, free: 1.953 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 6.131e-06/0.442, allocations: 256 / 0.5181 GB, free: 1.953 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008359/0.4429, allocations: 435.2 kB / 0.5185 GB, free: 1.504 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002908/0.4458, allocations: 0.6469 MB / 0.5192 GB, free: 0.8555 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2102/0.656, allocations: 17.06 MB / 0.5358 GB, free: 109.7 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001369/0.6574, allocations: 1.71 MB / 0.5375 GB, free: 109 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001256/0.6587, allocations: 359.9 kB / 0.5378 GB, free: 109 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00119/0.6598, allocations: 1.267 MB / 0.5391 GB, free: 108.7 MB / 446.1 MB Notification: Performance of SimCode: time 1.542e-06/0.6598, allocations: 1.312 kB / 0.5391 GB, free: 108.7 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09216/0.752, allocations: 63.83 MB / 0.6014 GB, free: 52.68 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.48/19.23, allocations: 4.062 kB / 0.6014 GB, free: 52.67 MB / 446.1 MB " [Timeout remaining time 641] (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 659] Reference file matches [Calling sys.exit(0), Time elapsed: 23.020617122005206]