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.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.001302/0.001302, allocations: 121.4 kB / 18.45 MB, free: 4.477 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.00142/0.00142, allocations: 189.2 kB / 21.39 MB, free: 1.543 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.475/1.475, allocations: 207.6 MB / 231.8 MB, free: 4.027 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.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_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.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001752/0.001752, allocations: 52.39 kB / 342.2 MB, free: 10.03 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1009/0.1027, allocations: 49.13 MB / 391.4 MB, free: 8.734 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01689/0.1196, allocations: 14.67 MB / 406 MB, free: 10.01 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02611/0.1457, allocations: 19.85 MB / 425.9 MB, free: 6.074 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002925/0.1486, allocations: 91.25 kB / 426 MB, free: 5.984 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004058/0.1527, allocations: 1.244 MB / 427.2 MB, free: 4.734 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008642/0.1613, allocations: 2.335 MB / 429.6 MB, free: 2.383 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004943/0.1663, allocations: 1.381 MB / 430.9 MB, free: 0.9922 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01238/0.1786, allocations: 6.492 MB / 437.4 MB, free: 10.48 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000814/0.1794, allocations: 273.7 kB / 437.7 MB, free: 10.18 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00192/0.1814, allocations: 1.038 MB / 438.7 MB, free: 9.141 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001714/0.1831, allocations: 1.125 MB / 439.9 MB, free: 8.008 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002379/0.1833, allocations: 72 kB / 439.9 MB, free: 7.938 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004098/0.1874, allocations: 1.159 MB / 441.1 MB, free: 6.777 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005112/0.1879, allocations: 337.5 kB / 441.4 MB, free: 6.445 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002066/0.19, allocations: 1.436 MB / 442.9 MB, free: 5 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006892/0.1969, allocations: 4.032 MB / 446.9 MB, free: 0.9492 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.714e-06/0.1969, allocations: 4 kB / 446.9 MB, free: 0.9453 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.475e-06/0.1969, allocations: 4 kB / 446.9 MB, free: 0.9414 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.985e-05/0.197, allocations: 0 / 446.9 MB, free: 0.9414 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.007168/0.2042, allocations: 3.973 MB / 450.9 MB, free: 12.89 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.048e-05/0.2042, allocations: 19.89 kB / 450.9 MB, free: 12.87 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001403/0.2043, allocations: 98.52 kB / 451 MB, free: 12.76 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005422/0.2049, allocations: 437.2 kB / 451.4 MB, free: 12.33 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004267/0.2092, allocations: 2.526 MB / 453.9 MB, free: 9.738 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.049e-05/0.2092, allocations: 29 kB / 454 MB, free: 9.707 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001451/0.2093, allocations: 67.88 kB / 454 MB, free: 9.641 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001415/0.2108, allocations: 0.7304 MB / 454.8 MB, free: 8.902 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.617e-05/0.2108, allocations: 0 / 454.8 MB, free: 8.902 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.555e-05/0.2108, allocations: 20 kB / 454.8 MB, free: 8.883 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.436e-05/0.2109, allocations: 23.98 kB / 454.8 MB, free: 8.859 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001599/0.2125, allocations: 0.8163 MB / 455.6 MB, free: 8.047 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006241/0.2187, allocations: 3.122 MB / 458.7 MB, free: 4.84 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001204/0.2199, allocations: 0.5165 MB / 459.3 MB, free: 4.312 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001094/0.221, allocations: 0.5627 MB / 459.8 MB, free: 3.75 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2165/0.4375, allocations: 30.19 MB / 490 MB, free: 43.79 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006849/0.4381, allocations: 355.3 kB / 490.4 MB, free: 43.58 MB / 382.1 MB Notification: Performance of pre-optimization done (n=49): time 2.715e-06/0.4382, allocations: 0 / 490.4 MB, free: 43.58 MB / 382.1 MB Notification: Performance of matching and sorting (n=49): time 0.002003/0.4402, allocations: 1.145 MB / 491.5 MB, free: 43.27 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.26e-05/0.4402, allocations: 59.22 kB / 491.6 MB, free: 43.2 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003627/0.4438, allocations: 3.109 MB / 494.7 MB, free: 41.6 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.992e-05/0.4439, allocations: 33.64 kB / 494.7 MB, free: 41.57 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008792/0.4448, allocations: 1.593 MB / 496.3 MB, free: 40.19 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001146/0.4449, allocations: 177.3 kB / 496.5 MB, free: 40.06 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002362/0.4451, allocations: 228.1 kB / 496.7 MB, free: 39.95 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.751e-05/0.4452, allocations: 337.8 kB / 497 MB, free: 39.62 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004809/0.4457, allocations: 243.4 kB / 497.3 MB, free: 39.52 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005724/0.4462, allocations: 0.6008 MB / 497.9 MB, free: 38.92 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001084/0.4473, allocations: 0.8938 MB / 498.7 MB, free: 38.21 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.684e-06/0.4473, allocations: 4.375 kB / 498.8 MB, free: 38.21 MB / 382.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001776/0.4491, allocations: 1.271 MB / 0.4883 GB, free: 37.61 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.374e-05/0.4491, allocations: 14.36 kB / 0.4883 GB, free: 37.6 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.491e-05/0.4492, allocations: 82.36 kB / 0.4884 GB, free: 37.6 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.285e-05/0.4492, allocations: 25.25 kB / 0.4884 GB, free: 37.59 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006359/0.4499, allocations: 198.1 kB / 0.4886 GB, free: 37.54 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.964e-05/0.4499, allocations: 30.83 kB / 0.4886 GB, free: 37.53 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008432/0.4507, allocations: 116.9 kB / 0.4888 GB, free: 37.48 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.579e-05/0.4508, allocations: 59.97 kB / 0.4888 GB, free: 37.47 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.000582/0.4514, allocations: 453.7 kB / 0.4892 GB, free: 37.12 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002442/0.4517, allocations: 425.1 kB / 0.4896 GB, free: 36.71 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002134/0.4538, allocations: 1.217 MB / 0.4908 GB, free: 35.55 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.212e-06/0.4538, allocations: 4 kB / 0.4908 GB, free: 35.54 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.09e-06/0.4538, allocations: 4.875 kB / 0.4908 GB, free: 35.54 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.999e-06/0.4538, allocations: 3.984 kB / 0.4908 GB, free: 35.54 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002725/0.4565, allocations: 2.153 MB / 0.493 GB, free: 33.33 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.586e-05/0.4566, allocations: 75.27 kB / 0.493 GB, free: 33.26 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004285/0.457, allocations: 95.8 kB / 0.4931 GB, free: 33.16 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.591e-06/0.4571, allocations: 4 kB / 0.4931 GB, free: 33.16 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.528e-05/0.4571, allocations: 34.73 kB / 0.4932 GB, free: 33.13 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.877e-06/0.4571, allocations: 8.062 kB / 0.4932 GB, free: 33.12 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.4571, allocations: 0 / 0.4932 GB, free: 33.12 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001746/0.4588, allocations: 1.35 MB / 0.4945 GB, free: 31.75 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007349/0.4596, allocations: 0.5002 MB / 0.495 GB, free: 31.23 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002761/0.4599, allocations: 12 kB / 0.495 GB, free: 31.22 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006505/0.4605, allocations: 32.02 kB / 0.495 GB, free: 31.19 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001272/0.4606, allocations: 59.95 kB / 0.4951 GB, free: 31.13 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.71e-05/0.4607, allocations: 39.98 kB / 0.4951 GB, free: 31.09 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001895/0.4626, allocations: 2.015 MB / 0.4971 GB, free: 29.09 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4626, allocations: 0 / 0.4971 GB, free: 29.09 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00119/0.4638, allocations: 0.6051 MB / 0.4977 GB, free: 28.52 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.002795/0.4666, allocations: 2.588 MB / 0.5002 GB, free: 26.02 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001343/0.4679, allocations: 0.7828 MB / 0.501 GB, free: 25.21 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.916e-06/0.4679, allocations: 0 / 0.501 GB, free: 25.21 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006023/0.4685, allocations: 423.3 kB / 0.5014 GB, free: 24.77 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00172/0.4702, allocations: 0.5409 MB / 0.5019 GB, free: 24.24 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0193/0.4895, allocations: 17.17 MB / 0.5187 GB, free: 6.621 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000744/0.4903, allocations: 1.722 MB / 0.5203 GB, free: 4.871 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0009403/0.4912, allocations: 361.2 kB / 0.5207 GB, free: 4.523 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008836/0.4921, allocations: 1.272 MB / 0.5219 GB, free: 3.25 MB / 382.1 MB Notification: Performance of SimCode: time 1.162e-06/0.4921, allocations: 0 / 0.5219 GB, free: 3.25 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1257/0.6179, allocations: 63.57 MB / 0.584 GB, free: 3.535 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.28/16.9, allocations: 7.969 kB / 0.584 GB, free: 3.527 MB / 446.1 MB " [Timeout remaining time 643] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 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.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/InvertersExtendedModel/InvertersExtendedModel.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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: 20.268522635102272]