Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001774/0.001774, allocations: 112.1 kB / 21.19 MB, free: 0.7031 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001982/0.001982, allocations: 208.6 kB / 24.49 MB, free: 4.055 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.38/1.38, allocations: 207.6 MB / 235.3 MB, free: 9.996 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001901/0.001901, allocations: 55.91 kB / 347.2 MB, free: 10.05 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2623/0.2642, allocations: 49.17 MB / 396.3 MB, free: 8.977 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01207/0.2763, allocations: 14.67 MB / 411 MB, free: 14.18 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02758/0.3039, allocations: 19.87 MB / 430.9 MB, free: 14.57 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004127/0.308, allocations: 138.2 kB / 431 MB, free: 14.48 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004701/0.3127, allocations: 1.244 MB / 432.3 MB, free: 13.55 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0103/0.323, allocations: 2.377 MB / 434.6 MB, free: 11.66 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006326/0.3293, allocations: 1.407 MB / 436 MB, free: 10.58 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01318/0.3425, allocations: 6.508 MB / 442.6 MB, free: 4.965 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000889/0.3434, allocations: 278.3 kB / 442.8 MB, free: 4.664 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002111/0.3455, allocations: 1.073 MB / 443.9 MB, free: 3.586 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001813/0.3473, allocations: 1.133 MB / 445 MB, free: 2.445 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002381/0.3476, allocations: 76 kB / 445.1 MB, free: 2.371 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004277/0.3519, allocations: 1.156 MB / 446.3 MB, free: 1.215 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005049/0.3524, allocations: 345.5 kB / 446.6 MB, free: 0.875 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002149/0.3545, allocations: 1.436 MB / 448 MB, free: 15.43 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007611/0.3621, allocations: 4.021 MB / 452.1 MB, free: 11.39 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.14e-06/0.3621, allocations: 0 / 452.1 MB, free: 11.39 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.3621, allocations: 0 / 452.1 MB, free: 11.39 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.949e-05/0.3622, allocations: 0 / 452.1 MB, free: 11.39 MB / 366.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.006392/0.3686, allocations: 3.91 MB / 456 MB, free: 7.418 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.897e-05/0.3686, allocations: 15.92 kB / 456 MB, free: 7.402 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001439/0.3688, allocations: 98.5 kB / 456.1 MB, free: 7.297 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005209/0.3693, allocations: 437.2 kB / 456.5 MB, free: 6.867 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004026/0.3733, allocations: 2.365 MB / 458.9 MB, free: 4.41 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.365e-05/0.3734, allocations: 37 kB / 458.9 MB, free: 4.375 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001349/0.3735, allocations: 63.88 kB / 459 MB, free: 4.312 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001455/0.375, allocations: 0.7343 MB / 459.7 MB, free: 3.574 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.747e-05/0.375, allocations: 0 / 459.7 MB, free: 3.574 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.888e-05/0.3751, allocations: 16 kB / 459.7 MB, free: 3.559 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.808e-05/0.3751, allocations: 23.98 kB / 459.7 MB, free: 3.535 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001667/0.3768, allocations: 0.8241 MB / 460.6 MB, free: 2.707 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006006/0.3828, allocations: 3.062 MB / 463.6 MB, free: 15.58 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001204/0.384, allocations: 0.5211 MB / 464.1 MB, free: 15.05 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009959/0.385, allocations: 0.574 MB / 464.7 MB, free: 14.46 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02705/0.412, allocations: 13.81 MB / 478.5 MB, free: 280 kB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008176/0.4128, allocations: 369.6 kB / 478.9 MB, free: 15.89 MB / 398.1 MB Notification: Performance of pre-optimization done (n=49): time 2.575e-06/0.4128, allocations: 0 / 478.9 MB, free: 15.89 MB / 398.1 MB Notification: Performance of matching and sorting (n=49): time 0.002521/0.4154, allocations: 1.13 MB / 480 MB, free: 14.76 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.253e-05/0.4154, allocations: 59.41 kB / 480.1 MB, free: 14.69 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004474/0.4199, allocations: 3.104 MB / 483.2 MB, free: 11.59 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000118/0.42, allocations: 41.7 kB / 483.2 MB, free: 11.54 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001597/0.4216, allocations: 1.593 MB / 484.8 MB, free: 9.938 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002435/0.4218, allocations: 170.6 kB / 485 MB, free: 9.77 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003638/0.4222, allocations: 226.4 kB / 485.2 MB, free: 9.543 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001968/0.4224, allocations: 341.9 kB / 485.5 MB, free: 9.203 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006422/0.4231, allocations: 249.8 kB / 485.8 MB, free: 8.961 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009476/0.424, allocations: 0.6017 MB / 486.4 MB, free: 8.184 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001583/0.4256, allocations: 0.8935 MB / 487.3 MB, free: 7.117 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.169e-05/0.4256, allocations: 7.938 kB / 487.3 MB, free: 7.109 MB / 398.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002515/0.4281, allocations: 1.266 MB / 488.6 MB, free: 5.832 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.821e-05/0.4281, allocations: 12.94 kB / 488.6 MB, free: 5.82 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001252/0.4283, allocations: 80 kB / 488.6 MB, free: 5.742 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.264e-05/0.4283, allocations: 19.94 kB / 488.7 MB, free: 5.723 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007456/0.429, allocations: 207.6 kB / 488.9 MB, free: 5.52 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.257e-05/0.4291, allocations: 31.86 kB / 488.9 MB, free: 5.488 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001325/0.4304, allocations: 103.3 kB / 489 MB, free: 5.387 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001313/0.4305, allocations: 68 kB / 489.1 MB, free: 5.32 MB / 398.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.000922/0.4315, allocations: 449.5 kB / 489.5 MB, free: 4.871 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000615/0.4321, allocations: 421.3 kB / 489.9 MB, free: 4.457 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002847/0.4349, allocations: 1.227 MB / 491.1 MB, free: 3.219 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.257e-06/0.4349, allocations: 4 kB / 491.1 MB, free: 3.215 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.06e-06/0.4349, allocations: 0 / 491.1 MB, free: 3.215 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.454e-06/0.4349, allocations: 3.984 kB / 491.2 MB, free: 3.211 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003949/0.4389, allocations: 2.119 MB / 493.3 MB, free: 1.031 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001145/0.439, allocations: 71.98 kB / 493.3 MB, free: 0.9609 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004944/0.4395, allocations: 95.92 kB / 493.4 MB, free: 0.8672 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.017e-06/0.4395, allocations: 4 kB / 493.4 MB, free: 0.8633 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.348e-05/0.4396, allocations: 39.97 kB / 493.5 MB, free: 0.8242 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.328e-06/0.4396, allocations: 0 / 493.5 MB, free: 0.8242 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.567e-06/0.4396, allocations: 4 kB / 493.5 MB, free: 0.8203 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00251/0.4421, allocations: 1.344 MB / 494.8 MB, free: 15.45 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001123/0.4432, allocations: 443.1 kB / 495.3 MB, free: 15.01 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000364/0.4436, allocations: 15.98 kB / 495.3 MB, free: 15 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006841/0.4443, allocations: 31.97 kB / 495.3 MB, free: 14.96 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001662/0.4444, allocations: 67.61 kB / 495.4 MB, free: 14.9 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.4e-05/0.4445, allocations: 36 kB / 495.4 MB, free: 14.87 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.003315/0.4478, allocations: 2.023 MB / 497.4 MB, free: 12.85 MB / 414.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.4478, allocations: 0 / 497.4 MB, free: 12.85 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001756/0.4496, allocations: 0.5969 MB / 498 MB, free: 12.25 MB / 414.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.004151/0.4537, allocations: 2.585 MB / 0.4889 GB, free: 9.633 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001749/0.4555, allocations: 0.7749 MB / 0.4896 GB, free: 8.832 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.4555, allocations: 0 / 0.4896 GB, free: 8.832 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008077/0.4563, allocations: 423 kB / 0.49 GB, free: 8.395 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00232/0.4586, allocations: 0.5346 MB / 0.4906 GB, free: 7.855 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02806/0.4867, allocations: 17.18 MB / 0.5073 GB, free: 6.156 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001346/0.488, allocations: 1.718 MB / 0.509 GB, free: 4.41 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001058/0.4891, allocations: 361.4 kB / 0.5094 GB, free: 4.051 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001373/0.4905, allocations: 1.272 MB / 0.5106 GB, free: 2.777 MB / 430.1 MB Notification: Performance of SimCode: time 1.593e-06/0.4905, allocations: 0 / 0.5106 GB, free: 2.777 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3084/0.7988, allocations: 64.18 MB / 0.5733 GB, free: 150.4 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 19.09/19.89, allocations: 8.781 kB / 0.5733 GB, free: 150.4 MB / 478.1 MB " [Timeout remaining time 640] (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel.fmu > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/InvertersExtendedModel/InvertersExtendedModel.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.csv. Warning: Get data of variable mp1.S.v from file Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.csv failed! Error: Could not read variable mp2.S.v in file Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.csv. Warning: Get data of variable mp2.S.v from file Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.csv failed! Error: Could not read variable v.p.v in file Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.csv. Warning: Get data of variable v.p.v from file Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 22.461777604003146]