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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001698/0.001698, allocations: 106.3 kB / 16.92 MB, free: 5.777 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002006/0.002006, allocations: 191.3 kB / 17.85 MB, free: 5.164 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.069/2.069, allocations: 222.9 MB / 241.5 MB, free: 15.29 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00171/0.00171, allocations: 45.2 kB / 300.7 MB, free: 5.816 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1278/0.1296, allocations: 49.43 MB / 350.2 MB, free: 4.367 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.02392/0.1535, allocations: 15.3 MB / 365.4 MB, free: 5 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.2659/0.4195, allocations: 20.74 MB / 386.2 MB, free: 7.387 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004657/0.4242, allocations: 31.56 kB / 386.2 MB, free: 7.375 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006038/0.4303, allocations: 1.263 MB / 387.5 MB, free: 6.719 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01425/0.4446, allocations: 2.345 MB / 389.8 MB, free: 5.391 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0082/0.4528, allocations: 1.439 MB / 391.3 MB, free: 4.645 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01521/0.4681, allocations: 6.586 MB / 397.9 MB, free: 2.012 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001245/0.4694, allocations: 471.3 kB / 398.3 MB, free: 1.773 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002456/0.4719, allocations: 1.092 MB / 399.4 MB, free: 1.254 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002187/0.4741, allocations: 1.138 MB / 400.5 MB, free: 0.5898 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003421/0.4744, allocations: 77.34 kB / 400.6 MB, free: 0.5898 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006547/0.481, allocations: 1.485 MB / 402.1 MB, free: 15.96 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006469/0.4817, allocations: 345.8 kB / 402.4 MB, free: 15.68 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002642/0.4843, allocations: 1.43 MB / 403.9 MB, free: 14.74 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009086/0.4934, allocations: 3.945 MB / 407.8 MB, free: 11.09 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.805e-06/0.4935, allocations: 4 kB / 407.8 MB, free: 11.09 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.4935, allocations: 0 / 407.8 MB, free: 11.09 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.471e-05/0.4936, allocations: 0 / 407.8 MB, free: 11.09 MB / 318.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.008911/0.5025, allocations: 3.831 MB / 411.7 MB, free: 7.18 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.566e-05/0.5026, allocations: 8.031 kB / 411.7 MB, free: 7.172 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001949/0.5028, allocations: 106.4 kB / 411.8 MB, free: 7.059 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008044/0.5037, allocations: 410.9 kB / 412.2 MB, free: 6.652 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005805/0.5095, allocations: 2.495 MB / 414.7 MB, free: 4.082 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.885e-05/0.5096, allocations: 37.88 kB / 414.7 MB, free: 4.047 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002021/0.5098, allocations: 55.89 kB / 414.8 MB, free: 3.992 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002101/0.5119, allocations: 0.7382 MB / 415.5 MB, free: 3.246 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.233e-05/0.5119, allocations: 0 / 415.5 MB, free: 3.246 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001048/0.512, allocations: 19.94 kB / 415.5 MB, free: 3.227 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.711e-05/0.5121, allocations: 19.98 kB / 415.5 MB, free: 3.207 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002605/0.5147, allocations: 0.8163 MB / 416.3 MB, free: 2.391 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008357/0.5231, allocations: 3.098 MB / 419.4 MB, free: 15.21 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001783/0.5249, allocations: 0.5752 MB / 420 MB, free: 14.62 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001482/0.5264, allocations: 0.6555 MB / 420.7 MB, free: 13.96 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04461/0.5711, allocations: 30.13 MB / 450.8 MB, free: 11.73 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001296/0.5724, allocations: 377.4 kB / 451.2 MB, free: 11.36 MB / 366.1 MB Notification: Performance of pre-optimization done (n=49): time 4.959e-06/0.5725, allocations: 0 / 451.2 MB, free: 11.36 MB / 366.1 MB Notification: Performance of matching and sorting (n=49): time 0.00401/0.5765, allocations: 1.104 MB / 452.3 MB, free: 10.24 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.51e-05/0.5766, allocations: 59.41 kB / 452.3 MB, free: 10.17 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008321/0.5849, allocations: 3.09 MB / 455.4 MB, free: 7.078 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001679/0.5851, allocations: 33.7 kB / 455.5 MB, free: 7.039 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002368/0.5875, allocations: 1.569 MB / 457 MB, free: 5.461 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003677/0.5879, allocations: 169.7 kB / 457.2 MB, free: 5.293 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006113/0.5886, allocations: 226.1 kB / 457.4 MB, free: 5.066 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001657/0.5887, allocations: 341.9 kB / 457.8 MB, free: 4.727 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009089/0.5897, allocations: 241.9 kB / 458 MB, free: 4.492 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001353/0.591, allocations: 0.5981 MB / 458.6 MB, free: 3.715 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002377/0.5934, allocations: 0.9013 MB / 459.5 MB, free: 2.645 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.519e-05/0.5935, allocations: 4 kB / 459.5 MB, free: 2.641 MB / 366.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.003753/0.5972, allocations: 1.245 MB / 460.7 MB, free: 1.387 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.891e-05/0.5973, allocations: 11.94 kB / 460.7 MB, free: 1.375 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001772/0.5975, allocations: 80 kB / 460.8 MB, free: 1.297 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.363e-05/0.5975, allocations: 20 kB / 460.8 MB, free: 1.277 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001132/0.5987, allocations: 199.6 kB / 461 MB, free: 1.082 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.661e-05/0.5988, allocations: 27.92 kB / 461.1 MB, free: 1.055 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001856/0.6006, allocations: 111.2 kB / 461.2 MB, free: 0.9453 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001737/0.6008, allocations: 64 kB / 461.2 MB, free: 0.8828 MB / 366.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.001291/0.6021, allocations: 449.5 kB / 461.7 MB, free: 444 kB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009748/0.6031, allocations: 407 kB / 462.1 MB, free: 32 kB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005127/0.6082, allocations: 1.224 MB / 463.3 MB, free: 14.79 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.172e-05/0.6083, allocations: 4 kB / 463.3 MB, free: 14.79 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.434e-06/0.6083, allocations: 0 / 463.3 MB, free: 14.79 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.248e-06/0.6083, allocations: 3.984 kB / 463.3 MB, free: 14.79 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006169/0.6145, allocations: 2.143 MB / 465.4 MB, free: 12.57 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001495/0.6147, allocations: 68 kB / 465.5 MB, free: 12.51 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007638/0.6155, allocations: 101 kB / 465.6 MB, free: 12.41 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.26e-05/0.6155, allocations: 4 kB / 465.6 MB, free: 12.41 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.472e-05/0.6156, allocations: 28 kB / 465.6 MB, free: 12.38 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.458e-06/0.6156, allocations: 4 kB / 465.6 MB, free: 12.38 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.846e-06/0.6156, allocations: 0 / 465.6 MB, free: 12.38 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003804/0.6194, allocations: 1.326 MB / 467 MB, free: 11.02 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001473/0.6209, allocations: 496 kB / 467.5 MB, free: 10.51 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006708/0.6216, allocations: 12 kB / 467.5 MB, free: 10.5 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001386/0.623, allocations: 24.84 kB / 467.5 MB, free: 10.48 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002388/0.6233, allocations: 67.88 kB / 467.6 MB, free: 10.41 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001169/0.6234, allocations: 36 kB / 467.6 MB, free: 10.38 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00556/0.629, allocations: 2.007 MB / 469.6 MB, free: 8.375 MB / 382.1 MB Notification: Performance of sort global known variables: time 7.31e-07/0.629, allocations: 64 / 469.6 MB, free: 8.375 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002732/0.6318, allocations: 0.605 MB / 470.2 MB, free: 7.77 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.00618/0.638, allocations: 2.537 MB / 472.7 MB, free: 5.199 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003007/0.641, allocations: 0.8364 MB / 473.6 MB, free: 4.332 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.867e-06/0.641, allocations: 0 / 473.6 MB, free: 4.332 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001265/0.6423, allocations: 447.7 kB / 474 MB, free: 3.871 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004618/0.6469, allocations: 0.6471 MB / 474.7 MB, free: 3.219 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04532/0.6923, allocations: 22.12 MB / 496.8 MB, free: 10.79 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001841/0.6942, allocations: 1.706 MB / 498.5 MB, free: 9.059 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.002583/0.6968, allocations: 357.3 kB / 498.8 MB, free: 8.703 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002199/0.699, allocations: 1.269 MB / 0.4884 GB, free: 7.434 MB / 414.1 MB Notification: Performance of SimCode: time 3.406e-06/0.699, allocations: 0 / 0.4884 GB, free: 7.434 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.406/1.105, allocations: 62.31 MB / 0.5492 GB, free: 147.7 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.44/17.55, allocations: 0.9375 kB / 0.5492 GB, free: 147.7 MB / 446.1 MB (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.002 Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel.fmu > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1) 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) Reference file matches