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.001918/0.001918, allocations: 112.9 kB / 18.45 MB, free: 4.59 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.002211/0.002211, allocations: 217.6 kB / 21.42 MB, free: 1.625 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.567/1.567, allocations: 207.6 MB / 231.8 MB, free: 3.914 MB / 174.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.002322/0.002322, allocations: 55.92 kB / 342.3 MB, free: 9.969 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1182/0.1205, allocations: 49.13 MB / 391.4 MB, free: 8.672 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01606/0.1366, allocations: 14.66 MB / 406.1 MB, free: 9.949 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02666/0.1632, allocations: 19.85 MB / 425.9 MB, free: 6.016 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003707/0.1669, allocations: 142.4 kB / 426.1 MB, free: 5.875 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004296/0.1712, allocations: 1.236 MB / 427.3 MB, free: 4.633 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009857/0.1811, allocations: 2.339 MB / 429.6 MB, free: 2.277 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006138/0.1872, allocations: 1.385 MB / 431 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01281/0.2001, allocations: 6.488 MB / 437.5 MB, free: 10.37 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007971/0.2008, allocations: 273.7 kB / 437.8 MB, free: 10.08 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001826/0.2027, allocations: 1.077 MB / 438.9 MB, free: 8.996 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001646/0.2043, allocations: 1.122 MB / 440 MB, free: 7.867 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002191/0.2045, allocations: 76 kB / 440.1 MB, free: 7.793 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004991/0.2095, allocations: 1.163 MB / 441.2 MB, free: 6.629 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000614/0.2101, allocations: 341.5 kB / 441.5 MB, free: 6.293 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002066/0.2122, allocations: 1.44 MB / 443 MB, free: 4.844 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007747/0.22, allocations: 4.021 MB / 447 MB, free: 0.8047 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.913e-06/0.22, allocations: 0 / 447 MB, free: 0.8047 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.22, allocations: 7.938 kB / 447 MB, free: 0.7969 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.72e-05/0.2201, allocations: 0 / 447 MB, free: 0.7969 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.007374/0.2274, allocations: 3.985 MB / 451 MB, free: 12.73 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.276e-05/0.2275, allocations: 8.031 kB / 451 MB, free: 12.72 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001635/0.2277, allocations: 98.5 kB / 451.1 MB, free: 12.62 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000714/0.2284, allocations: 437.2 kB / 451.5 MB, free: 12.19 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004075/0.2324, allocations: 2.522 MB / 454.1 MB, free: 9.598 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.617e-05/0.2325, allocations: 37 kB / 454.1 MB, free: 9.559 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001597/0.2326, allocations: 59.94 kB / 454.2 MB, free: 9.5 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001546/0.2342, allocations: 0.7265 MB / 454.9 MB, free: 8.77 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.639e-05/0.2342, allocations: 7.922 kB / 454.9 MB, free: 8.762 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.219e-05/0.2343, allocations: 20 kB / 454.9 MB, free: 8.742 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.64e-05/0.2343, allocations: 23.98 kB / 454.9 MB, free: 8.719 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001644/0.236, allocations: 0.8202 MB / 455.7 MB, free: 7.898 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006027/0.242, allocations: 3.122 MB / 458.9 MB, free: 4.691 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001246/0.2432, allocations: 0.5127 MB / 459.4 MB, free: 4.168 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001013/0.2442, allocations: 0.5705 MB / 460 MB, free: 3.598 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2181/0.4623, allocations: 30.18 MB / 490.1 MB, free: 43.47 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006562/0.463, allocations: 365.6 kB / 490.5 MB, free: 43.26 MB / 382.1 MB Notification: Performance of pre-optimization done (n=49): time 2.725e-06/0.463, allocations: 3.875 kB / 490.5 MB, free: 43.26 MB / 382.1 MB Notification: Performance of matching and sorting (n=49): time 0.002276/0.4653, allocations: 1.137 MB / 491.6 MB, free: 42.95 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.279e-05/0.4653, allocations: 66.36 kB / 491.7 MB, free: 42.88 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003616/0.4689, allocations: 3.103 MB / 494.8 MB, free: 41.29 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.161e-05/0.469, allocations: 37.67 kB / 494.8 MB, free: 41.25 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008643/0.4699, allocations: 1.586 MB / 496.4 MB, free: 39.88 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001378/0.47, allocations: 171.1 kB / 496.6 MB, free: 39.75 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002547/0.4703, allocations: 239.6 kB / 496.8 MB, free: 39.62 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.438e-05/0.4703, allocations: 337.8 kB / 497.2 MB, free: 39.3 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005269/0.4709, allocations: 245.1 kB / 497.4 MB, free: 39.2 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006447/0.4715, allocations: 0.6 MB / 498 MB, free: 38.61 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001238/0.4727, allocations: 0.8958 MB / 498.9 MB, free: 37.89 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.193e-06/0.4728, allocations: 4.25 kB / 498.9 MB, free: 37.89 MB / 382.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001837/0.4746, allocations: 1.271 MB / 0.4884 GB, free: 37.29 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.34e-05/0.4746, allocations: 10.78 kB / 0.4885 GB, free: 37.29 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.369e-05/0.4747, allocations: 80.28 kB / 0.4885 GB, free: 37.28 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.01e-05/0.4747, allocations: 21.69 kB / 0.4885 GB, free: 37.28 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000649/0.4754, allocations: 201.7 kB / 0.4887 GB, free: 37.22 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.142e-05/0.4754, allocations: 29.48 kB / 0.4888 GB, free: 37.21 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008801/0.4763, allocations: 108.5 kB / 0.4889 GB, free: 37.17 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.472e-05/0.4764, allocations: 67.12 kB / 0.4889 GB, free: 37.14 MB / 382.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.0006321/0.477, allocations: 457.7 kB / 0.4894 GB, free: 36.7 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002558/0.4773, allocations: 425.3 kB / 0.4898 GB, free: 36.28 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002234/0.4795, allocations: 1.211 MB / 0.491 GB, free: 35.12 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.403e-06/0.4795, allocations: 8 kB / 0.491 GB, free: 35.12 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.4795, allocations: 0 / 0.491 GB, free: 35.12 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.039e-06/0.4795, allocations: 0 / 0.491 GB, free: 35.12 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002641/0.4822, allocations: 2.164 MB / 0.4931 GB, free: 32.91 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.409e-05/0.4822, allocations: 77.58 kB / 0.4932 GB, free: 32.83 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004465/0.4827, allocations: 87.98 kB / 0.4932 GB, free: 32.75 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.1e-06/0.4827, allocations: 0 / 0.4932 GB, free: 32.75 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.7e-05/0.4827, allocations: 39.98 kB / 0.4933 GB, free: 32.71 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.897e-06/0.4827, allocations: 3.938 kB / 0.4933 GB, free: 32.7 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.4827, allocations: 0 / 0.4933 GB, free: 32.7 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001825/0.4846, allocations: 1.339 MB / 0.4946 GB, free: 31.34 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005902/0.4851, allocations: 0.5089 MB / 0.4951 GB, free: 30.82 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002601/0.4854, allocations: 11.98 kB / 0.4951 GB, free: 30.8 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006463/0.4861, allocations: 31.97 kB / 0.4951 GB, free: 30.77 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001453/0.4862, allocations: 59.94 kB / 0.4952 GB, free: 30.71 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.241e-05/0.4863, allocations: 36 kB / 0.4952 GB, free: 30.68 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002123/0.4884, allocations: 2.019 MB / 0.4972 GB, free: 28.67 MB / 382.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4884, allocations: 0 / 0.4972 GB, free: 28.67 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001512/0.4899, allocations: 0.609 MB / 0.4978 GB, free: 28.1 MB / 382.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.003137/0.493, allocations: 2.585 MB / 0.5003 GB, free: 25.59 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001413/0.4944, allocations: 0.7825 MB / 0.5011 GB, free: 24.78 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.4944, allocations: 0 / 0.5011 GB, free: 24.78 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006278/0.4951, allocations: 431.8 kB / 0.5015 GB, free: 24.33 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001739/0.4968, allocations: 0.538 MB / 0.502 GB, free: 23.8 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02086/0.5177, allocations: 17.17 MB / 0.5188 GB, free: 6.176 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008106/0.5185, allocations: 1.714 MB / 0.5205 GB, free: 4.434 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001031/0.5195, allocations: 364.1 kB / 0.5208 GB, free: 4.082 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009509/0.5205, allocations: 1.276 MB / 0.522 GB, free: 2.805 MB / 382.1 MB Notification: Performance of SimCode: time 1.493e-06/0.5205, allocations: 0 / 0.522 GB, free: 2.805 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1328/0.6533, allocations: 63.56 MB / 0.5841 GB, free: 3.102 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.84/17.49, allocations: 12.05 kB / 0.5841 GB, free: 3.09 MB / 446.1 MB " [Timeout remaining time 642] (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: 20.310740191998775]