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.001854/0.001854, allocations: 103.5 kB / 20.44 MB, free: 1.332 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.002244/0.002244, allocations: 188.6 kB / 23.7 MB, free: 4.523 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.428/1.428, allocations: 225.7 MB / 252.5 MB, free: 12.82 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.001578/0.001578, allocations: 47.92 kB / 370.4 MB, free: 9.688 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2244/0.2259, allocations: 52.17 MB / 422.6 MB, free: 14.42 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01449/0.2404, allocations: 12.9 MB / 435.5 MB, free: 1.473 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02441/0.2649, allocations: 17.93 MB / 453.4 MB, free: 15.47 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0024/0.2673, allocations: 138.5 kB / 453.5 MB, free: 15.33 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003354/0.2706, allocations: 1.154 MB / 454.7 MB, free: 14.17 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008277/0.2789, allocations: 2.401 MB / 457.1 MB, free: 11.75 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004727/0.2836, allocations: 1.414 MB / 458.5 MB, free: 10.33 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01046/0.2941, allocations: 6.645 MB / 465.1 MB, free: 3.668 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006994/0.2948, allocations: 262.2 kB / 465.4 MB, free: 3.383 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001915/0.2967, allocations: 1.194 MB / 466.6 MB, free: 2.184 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001514/0.2982, allocations: 1.098 MB / 467.7 MB, free: 1.078 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002352/0.2984, allocations: 76 kB / 467.8 MB, free: 1.004 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003346/0.3018, allocations: 1.194 MB / 469 MB, free: 15.81 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003963/0.3022, allocations: 345.5 kB / 469.3 MB, free: 15.47 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001232/0.3034, allocations: 1.048 MB / 470.3 MB, free: 14.41 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00529/0.3087, allocations: 4.032 MB / 474.4 MB, free: 10.36 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.3087, allocations: 0 / 474.4 MB, free: 10.36 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.254e-06/0.3087, allocations: 4 kB / 474.4 MB, free: 10.36 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.477e-05/0.3088, allocations: 4 kB / 474.4 MB, free: 10.36 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.005966/0.3147, allocations: 3.882 MB / 478.3 MB, free: 6.414 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.459e-05/0.3148, allocations: 12.03 kB / 478.3 MB, free: 6.402 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001342/0.3149, allocations: 102.5 kB / 478.4 MB, free: 6.293 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000499/0.3154, allocations: 437.2 kB / 478.8 MB, free: 5.863 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003835/0.3193, allocations: 2.353 MB / 481.2 MB, free: 3.418 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.102e-05/0.3193, allocations: 40.98 kB / 481.2 MB, free: 3.375 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001297/0.3194, allocations: 51.95 kB / 481.2 MB, free: 3.324 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001391/0.3208, allocations: 0.7343 MB / 482 MB, free: 2.586 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.557e-05/0.3208, allocations: 0 / 482 MB, free: 2.586 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.645e-05/0.3209, allocations: 20 kB / 482 MB, free: 2.566 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.345e-05/0.3209, allocations: 19.98 kB / 482 MB, free: 2.547 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001642/0.3226, allocations: 0.8202 MB / 482.8 MB, free: 1.727 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005409/0.328, allocations: 2.894 MB / 485.7 MB, free: 14.76 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001217/0.3292, allocations: 0.5202 MB / 486.3 MB, free: 14.23 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001007/0.3302, allocations: 0.5653 MB / 486.8 MB, free: 13.66 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02592/0.3561, allocations: 13.69 MB / 0.4888 GB, free: 15.58 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008102/0.3569, allocations: 365.7 kB / 0.4891 GB, free: 15.21 MB / 414.1 MB Notification: Performance of pre-optimization done (n=49): time 2.685e-06/0.3569, allocations: 3.938 kB / 0.4891 GB, free: 15.21 MB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.00237/0.3593, allocations: 1.118 MB / 0.4902 GB, free: 14.08 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.557e-05/0.3594, allocations: 75.33 kB / 0.4903 GB, free: 14 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004017/0.3634, allocations: 3.11 MB / 0.4933 GB, free: 10.89 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 6.638e-05/0.3635, allocations: 33.7 kB / 0.4934 GB, free: 10.85 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001537/0.365, allocations: 1.582 MB / 0.4949 GB, free: 9.258 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001956/0.3652, allocations: 178.5 kB / 0.4951 GB, free: 9.082 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003299/0.3655, allocations: 234.3 kB / 0.4953 GB, free: 8.848 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001713/0.3657, allocations: 337.9 kB / 0.4956 GB, free: 8.512 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006418/0.3663, allocations: 249.8 kB / 0.4959 GB, free: 8.266 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009525/0.3673, allocations: 0.5978 MB / 0.4965 GB, free: 7.492 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001578/0.3689, allocations: 0.9012 MB / 0.4973 GB, free: 6.418 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.085e-06/0.3689, allocations: 4 kB / 0.4973 GB, free: 6.414 MB / 414.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002322/0.3712, allocations: 1.255 MB / 0.4986 GB, free: 5.148 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.288e-05/0.3712, allocations: 8 kB / 0.4986 GB, free: 5.141 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001188/0.3713, allocations: 83.94 kB / 0.4986 GB, free: 5.059 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.829e-05/0.3714, allocations: 20 kB / 0.4987 GB, free: 5.039 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007328/0.3721, allocations: 204.3 kB / 0.4989 GB, free: 4.84 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.567e-05/0.3721, allocations: 27.86 kB / 0.4989 GB, free: 4.812 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009727/0.3731, allocations: 111.3 kB / 0.499 GB, free: 4.703 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001084/0.3732, allocations: 64 kB / 0.4991 GB, free: 4.641 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.0008034/0.374, allocations: 457.5 kB / 0.4995 GB, free: 4.184 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004163/0.3744, allocations: 421.3 kB / 0.4999 GB, free: 3.77 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002677/0.3771, allocations: 1.207 MB / 0.5011 GB, free: 2.559 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.029e-05/0.3771, allocations: 4 kB / 0.5011 GB, free: 2.555 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.091e-06/0.3771, allocations: 4 kB / 0.5011 GB, free: 2.551 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.372e-06/0.3771, allocations: 3.984 kB / 0.5011 GB, free: 2.547 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003619/0.3807, allocations: 2.064 MB / 0.5031 GB, free: 428 kB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001017/0.3808, allocations: 68 kB / 0.5032 GB, free: 360 kB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004917/0.3813, allocations: 99.86 kB / 0.5033 GB, free: 260 kB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.963e-06/0.3813, allocations: 4 kB / 0.5033 GB, free: 256 kB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.13e-05/0.3814, allocations: 35.98 kB / 0.5033 GB, free: 220 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.387e-06/0.3814, allocations: 0 / 0.5033 GB, free: 220 kB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.617e-06/0.3814, allocations: 4 kB / 0.5033 GB, free: 216 kB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002397/0.3838, allocations: 1.346 MB / 0.5046 GB, free: 14.84 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008952/0.3847, allocations: 435.1 kB / 0.505 GB, free: 14.41 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002972/0.385, allocations: 8 kB / 0.505 GB, free: 14.41 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00073/0.3857, allocations: 32.03 kB / 0.5051 GB, free: 14.38 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000154/0.3859, allocations: 67.86 kB / 0.5051 GB, free: 14.31 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.39e-05/0.386, allocations: 36 kB / 0.5052 GB, free: 14.27 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002706/0.3887, allocations: 2.007 MB / 0.5071 GB, free: 12.27 MB / 430.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3887, allocations: 0 / 0.5071 GB, free: 12.27 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001401/0.3901, allocations: 0.6008 MB / 0.5077 GB, free: 11.67 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.003865/0.3939, allocations: 2.573 MB / 0.5102 GB, free: 9.062 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001658/0.3956, allocations: 0.7789 MB / 0.511 GB, free: 8.258 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.3956, allocations: 0 / 0.511 GB, free: 8.258 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007855/0.3964, allocations: 423.3 kB / 0.5114 GB, free: 7.82 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002667/0.399, allocations: 0.6469 MB / 0.512 GB, free: 7.172 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02521/0.4243, allocations: 17.05 MB / 0.5287 GB, free: 5.602 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001162/0.4254, allocations: 1.158 MB / 0.5298 GB, free: 4.406 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001079/0.4265, allocations: 361.3 kB / 0.5301 GB, free: 4.047 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00138/0.4279, allocations: 1.261 MB / 0.5314 GB, free: 2.785 MB / 446.1 MB Notification: Performance of SimCode: time 1.122e-06/0.4279, allocations: 0 / 0.5314 GB, free: 2.785 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2708/0.6986, allocations: 66.49 MB / 0.5963 GB, free: 57.52 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.95/16.65, allocations: 11.42 kB / 0.5963 GB, free: 57.51 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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0009996 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.csv","/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] "Error: Could not read variable mp1.S.v in file Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.csv. Warning: Get data of variable mp1.S.v from file Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.csv failed! Error: Could not read variable mp2.S.v in file Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.csv. Warning: Get data of variable mp2.S.v from file Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.csv failed! Error: Could not read variable v.p.v in file Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.csv. Warning: Get data of variable v.p.v from file Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 19.265667208004743]