Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001452/0.001452, allocations: 123.4 kB / 17.79 MB, free: 5.227 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.001638/0.001638, allocations: 208.3 kB / 20.75 MB, free: 2.273 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.529/1.529, allocations: 230.6 MB / 254.1 MB, free: 15.09 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4_1_0_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00157/0.00157, allocations: 51.94 kB / 373 MB, free: 10.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1046/0.1061, allocations: 53.33 MB / 426.3 MB, free: 4.777 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.2221/0.3282, allocations: 15.35 MB / 441.7 MB, free: 2.02 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02898/0.3572, allocations: 20.84 MB / 462.5 MB, free: 3.219 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003577/0.3608, allocations: 133.8 kB / 462.6 MB, free: 3.129 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004685/0.3654, allocations: 1.263 MB / 463.9 MB, free: 2.465 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01118/0.3766, allocations: 2.381 MB / 466.3 MB, free: 1 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006656/0.3833, allocations: 1.439 MB / 467.7 MB, free: 256 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01353/0.3968, allocations: 6.712 MB / 474.4 MB, free: 13.08 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000949/0.3978, allocations: 269.7 kB / 474.7 MB, free: 12.9 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002863/0.4006, allocations: 1.188 MB / 475.9 MB, free: 12.34 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002237/0.4029, allocations: 1.142 MB / 477 MB, free: 11.67 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002876/0.4031, allocations: 74.97 kB / 477.1 MB, free: 11.67 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006769/0.4099, allocations: 1.476 MB / 478.6 MB, free: 11.05 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007229/0.4106, allocations: 336 kB / 478.9 MB, free: 10.79 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003172/0.4138, allocations: 1.432 MB / 480.3 MB, free: 9.84 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00948/0.4233, allocations: 4.011 MB / 484.3 MB, free: 6.688 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.347e-06/0.4233, allocations: 4 kB / 484.4 MB, free: 6.684 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.404e-06/0.4233, allocations: 3.938 kB / 484.4 MB, free: 6.68 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.674e-05/0.4234, allocations: 0 / 484.4 MB, free: 6.68 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.006622/0.43, allocations: 3.965 MB / 488.3 MB, free: 2.629 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.942e-05/0.4301, allocations: 12.03 kB / 488.3 MB, free: 2.617 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001527/0.4302, allocations: 90.52 kB / 488.4 MB, free: 2.52 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005864/0.4308, allocations: 437.3 kB / 488.8 MB, free: 2.09 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003898/0.4347, allocations: 2.503 MB / 491.3 MB, free: 15.52 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.12e-05/0.4347, allocations: 37 kB / 491.4 MB, free: 15.48 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001376/0.4349, allocations: 55.95 kB / 491.4 MB, free: 15.43 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001513/0.4364, allocations: 0.7304 MB / 492.2 MB, free: 14.7 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.547e-05/0.4364, allocations: 0 / 492.2 MB, free: 14.7 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.266e-05/0.4365, allocations: 16 kB / 492.2 MB, free: 14.68 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.591e-05/0.4365, allocations: 19.98 kB / 492.2 MB, free: 14.66 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001731/0.4382, allocations: 0.8163 MB / 493 MB, free: 13.84 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005918/0.4442, allocations: 3.107 MB / 496.1 MB, free: 10.65 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00131/0.4455, allocations: 0.5243 MB / 496.7 MB, free: 10.12 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001062/0.4465, allocations: 0.5636 MB / 497.2 MB, free: 9.555 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03427/0.4808, allocations: 30.76 MB / 0.5156 GB, free: 6.547 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008617/0.4817, allocations: 369.6 kB / 0.516 GB, free: 6.176 MB / 430.1 MB Notification: Performance of pre-optimization done (n=49): time 3.447e-06/0.4817, allocations: 0 / 0.516 GB, free: 6.176 MB / 430.1 MB Notification: Performance of matching and sorting (n=49): time 0.002717/0.4844, allocations: 1.13 MB / 0.5171 GB, free: 5.039 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.636e-05/0.4845, allocations: 59.39 kB / 0.5171 GB, free: 4.969 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0044/0.4889, allocations: 3.09 MB / 0.5201 GB, free: 1.879 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001032/0.489, allocations: 37.7 kB / 0.5202 GB, free: 1.836 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001549/0.4905, allocations: 1.582 MB / 0.5217 GB, free: 252 kB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002269/0.4907, allocations: 174.5 kB / 0.5219 GB, free: 76 kB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003723/0.4911, allocations: 230.4 kB / 0.5221 GB, free: 15.84 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001791/0.4913, allocations: 341.9 kB / 0.5224 GB, free: 15.5 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006467/0.4919, allocations: 245.8 kB / 0.5227 GB, free: 15.27 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009563/0.4929, allocations: 0.602 MB / 0.5232 GB, free: 14.49 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001614/0.4945, allocations: 0.909 MB / 0.5241 GB, free: 13.4 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.106e-06/0.4945, allocations: 4 kB / 0.5241 GB, free: 13.4 MB / 446.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.00248/0.497, allocations: 1.251 MB / 0.5254 GB, free: 12.14 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.888e-05/0.497, allocations: 12 kB / 0.5254 GB, free: 12.13 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001182/0.4971, allocations: 80 kB / 0.5254 GB, free: 12.05 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.652e-05/0.4972, allocations: 16 kB / 0.5255 GB, free: 12.04 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007528/0.4979, allocations: 203.6 kB / 0.5257 GB, free: 11.84 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.222e-05/0.498, allocations: 28.8 kB / 0.5257 GB, free: 11.81 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001385/0.4993, allocations: 115.3 kB / 0.5258 GB, free: 11.7 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001464/0.4995, allocations: 64.94 kB / 0.5259 GB, free: 11.64 MB / 446.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.0009756/0.5005, allocations: 453.4 kB / 0.5263 GB, free: 11.18 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006443/0.5011, allocations: 423.6 kB / 0.5267 GB, free: 10.77 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002962/0.5041, allocations: 1.208 MB / 0.5279 GB, free: 9.551 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.689e-06/0.5041, allocations: 4 kB / 0.5279 GB, free: 9.547 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.01e-06/0.5041, allocations: 0 / 0.5279 GB, free: 9.547 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.347e-06/0.5041, allocations: 3.984 kB / 0.5279 GB, free: 9.543 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003958/0.508, allocations: 2.143 MB / 0.53 GB, free: 7.336 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.8e-05/0.5081, allocations: 71.98 kB / 0.53 GB, free: 7.266 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005144/0.5087, allocations: 100.5 kB / 0.5301 GB, free: 7.168 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.756e-06/0.5087, allocations: 4 kB / 0.5301 GB, free: 7.164 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.441e-05/0.5087, allocations: 32 kB / 0.5302 GB, free: 7.133 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.794e-06/0.5087, allocations: 4 kB / 0.5302 GB, free: 7.129 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.597e-06/0.5087, allocations: 0.875 kB / 0.5302 GB, free: 7.129 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002651/0.5114, allocations: 1.35 MB / 0.5315 GB, free: 5.75 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00097/0.5124, allocations: 0.5061 MB / 0.532 GB, free: 5.223 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003026/0.5127, allocations: 8 kB / 0.532 GB, free: 5.215 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006895/0.5134, allocations: 27.97 kB / 0.532 GB, free: 5.188 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001746/0.5135, allocations: 67.88 kB / 0.5321 GB, free: 5.121 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.053e-05/0.5136, allocations: 36 kB / 0.5321 GB, free: 5.086 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003081/0.5167, allocations: 2.007 MB / 0.5341 GB, free: 3.086 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5167, allocations: 4.062 kB / 0.5341 GB, free: 3.082 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001677/0.5184, allocations: 0.5969 MB / 0.5347 GB, free: 2.484 MB / 446.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.004167/0.5225, allocations: 2.583 MB / 0.5372 GB, free: 15.87 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.001799/0.5243, allocations: 0.7747 MB / 0.5379 GB, free: 15.07 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.008e-06/0.5243, allocations: 0 / 0.5379 GB, free: 15.07 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008195/0.5252, allocations: 423.8 kB / 0.5384 GB, free: 14.63 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002984/0.5281, allocations: 0.6398 MB / 0.539 GB, free: 14 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02743/0.5556, allocations: 17.06 MB / 0.5556 GB, free: 12.42 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001362/0.5569, allocations: 1.702 MB / 0.5573 GB, free: 10.69 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001164/0.5581, allocations: 365.3 kB / 0.5576 GB, free: 10.32 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001465/0.5596, allocations: 1.265 MB / 0.5589 GB, free: 9.059 MB / 478.1 MB Notification: Performance of SimCode: time 1.813e-06/0.5596, allocations: 4 kB / 0.5589 GB, free: 9.055 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3307/0.8903, allocations: 63.22 MB / 0.6206 GB, free: 165.2 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.52/17.41, allocations: 1 kB / 0.6206 GB, free: 165.2 MB / 0.5137 GB " [Timeout remaining time 642] (rm -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & python3 -m fmpy simulate --output-file Modelica_4.1.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_1_0_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel.fmu > Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/InvertersExtendedModel/InvertersExtendedModel.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.csv. Warning: Get data of variable mp1.S.v from file Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.csv failed! Error: Could not read variable mp2.S.v in file Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.csv. Warning: Get data of variable mp2.S.v from file Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.csv failed! Error: Could not read variable v.p.v in file Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.csv. Warning: Get data of variable v.p.v from file Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 20.09081239599618]