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.001168/0.001168, allocations: 91.81 kB / 16.65 MB, free: 6.59 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.001243/0.001243, allocations: 182.7 kB / 17.56 MB, free: 6.203 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.35/1.35, allocations: 223.3 MB / 241.6 MB, free: 216 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002605/0.0002606, allocations: 8 kB / 301.5 MB, free: 6.059 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09296/0.09325, allocations: 50.4 MB / 351.9 MB, free: 3.652 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01228/0.1056, allocations: 14.61 MB / 366.5 MB, free: 4.973 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1781/0.2837, allocations: 20.64 MB / 387.2 MB, free: 7.867 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001064/0.2848, allocations: 33.97 kB / 387.2 MB, free: 7.852 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00247/0.2873, allocations: 1.129 MB / 388.3 MB, free: 7.527 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005769/0.2931, allocations: 1.971 MB / 390.3 MB, free: 6.895 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003397/0.2965, allocations: 1.195 MB / 391.5 MB, free: 6.582 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.007696/0.3042, allocations: 6.483 MB / 398 MB, free: 4.176 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005725/0.3048, allocations: 441 kB / 398.4 MB, free: 3.957 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001232/0.306, allocations: 1.069 MB / 399.5 MB, free: 3.461 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008936/0.3069, allocations: 1.109 MB / 400.6 MB, free: 2.832 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001268/0.307, allocations: 41 kB / 400.6 MB, free: 2.832 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003158/0.3102, allocations: 1.458 MB / 402.1 MB, free: 2.203 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001894/0.3104, allocations: 301.4 kB / 402.4 MB, free: 1.973 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007877/0.3112, allocations: 1.42 MB / 403.8 MB, free: 1.031 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003065/0.3143, allocations: 3.826 MB / 407.6 MB, free: 13.71 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.3143, allocations: 4 kB / 407.6 MB, free: 13.71 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.3143, allocations: 0 / 407.6 MB, free: 13.71 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.407e-05/0.3143, allocations: 0 / 407.6 MB, free: 13.71 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.004421/0.3188, allocations: 3.331 MB / 411 MB, free: 10.3 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.77e-05/0.3188, allocations: 8.031 kB / 411 MB, free: 10.3 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001534/0.319, allocations: 102.5 kB / 411.1 MB, free: 10.19 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004286/0.3194, allocations: 410.9 kB / 411.5 MB, free: 9.781 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003477/0.3229, allocations: 2.495 MB / 414 MB, free: 7.215 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.63e-05/0.3229, allocations: 37 kB / 414 MB, free: 7.18 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001303/0.3231, allocations: 51.94 kB / 414.1 MB, free: 7.129 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001394/0.3245, allocations: 0.75 MB / 414.8 MB, free: 6.375 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.474e-05/0.3245, allocations: 0 / 414.8 MB, free: 6.375 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.454e-05/0.3246, allocations: 19.98 kB / 414.8 MB, free: 6.355 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.358e-05/0.3246, allocations: 20 kB / 414.9 MB, free: 6.336 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001618/0.3263, allocations: 0.867 MB / 415.7 MB, free: 5.465 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005801/0.3321, allocations: 3.129 MB / 418.9 MB, free: 2.25 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001225/0.3333, allocations: 0.6212 MB / 419.5 MB, free: 1.625 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00102/0.3343, allocations: 0.6682 MB / 420.1 MB, free: 0.9531 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02857/0.3629, allocations: 30.17 MB / 450.3 MB, free: 14.68 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000789/0.3638, allocations: 389.4 kB / 450.7 MB, free: 14.29 MB / 366.1 MB Notification: Performance of pre-optimization done (n=49): time 4.438e-06/0.3638, allocations: 4 kB / 450.7 MB, free: 14.29 MB / 366.1 MB Notification: Performance of matching and sorting (n=49): time 0.002522/0.3663, allocations: 1.171 MB / 451.9 MB, free: 13.11 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.352e-05/0.3664, allocations: 67.33 kB / 451.9 MB, free: 13.03 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004756/0.3711, allocations: 3.087 MB / 455 MB, free: 9.941 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.616e-05/0.3712, allocations: 33.7 kB / 455 MB, free: 9.902 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001429/0.3726, allocations: 1.573 MB / 456.6 MB, free: 8.32 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001603/0.3728, allocations: 165.7 kB / 456.8 MB, free: 8.156 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001158/0.3729, allocations: 73.67 kB / 456.9 MB, free: 8.078 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001239/0.3731, allocations: 337.9 kB / 457.2 MB, free: 7.742 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006099/0.3737, allocations: 269.8 kB / 457.4 MB, free: 7.48 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000831/0.3745, allocations: 0.6255 MB / 458.1 MB, free: 6.684 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001548/0.3761, allocations: 0.9404 MB / 459 MB, free: 5.574 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.318e-06/0.3761, allocations: 0 / 459 MB, free: 5.574 MB / 366.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002314/0.3784, allocations: 1.295 MB / 460.3 MB, free: 4.27 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.657e-05/0.3785, allocations: 8 kB / 460.3 MB, free: 4.262 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000109/0.3786, allocations: 84.89 kB / 460.4 MB, free: 4.18 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.219e-05/0.3786, allocations: 20 kB / 460.4 MB, free: 4.16 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007127/0.3793, allocations: 211.6 kB / 460.6 MB, free: 3.953 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.951e-05/0.3794, allocations: 23.92 kB / 460.6 MB, free: 3.93 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001207/0.3806, allocations: 119.1 kB / 460.8 MB, free: 3.812 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000123/0.3807, allocations: 67.98 kB / 460.8 MB, free: 3.746 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.000741/0.3815, allocations: 457.4 kB / 461.3 MB, free: 3.289 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005517/0.382, allocations: 399.1 kB / 461.7 MB, free: 2.895 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002999/0.385, allocations: 1.258 MB / 462.9 MB, free: 1.621 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.795e-06/0.3851, allocations: 4 kB / 462.9 MB, free: 1.617 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.003e-06/0.3851, allocations: 0 / 462.9 MB, free: 1.617 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.29e-06/0.3851, allocations: 3.938 kB / 462.9 MB, free: 1.613 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003374/0.3885, allocations: 2.186 MB / 465.1 MB, free: 15.36 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.966e-05/0.3886, allocations: 71.98 kB / 465.2 MB, free: 15.29 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004789/0.3891, allocations: 107.9 kB / 465.3 MB, free: 15.18 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.198e-06/0.3891, allocations: 0 / 465.3 MB, free: 15.18 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.851e-05/0.3891, allocations: 39.92 kB / 465.3 MB, free: 15.14 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.4e-06/0.3892, allocations: 0.875 kB / 465.3 MB, free: 15.14 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.3892, allocations: 0 / 465.3 MB, free: 15.14 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002243/0.3914, allocations: 1.38 MB / 466.7 MB, free: 13.73 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006785/0.3921, allocations: 492 kB / 467.2 MB, free: 13.23 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003701/0.3925, allocations: 12.06 kB / 467.2 MB, free: 13.22 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007706/0.3933, allocations: 43.95 kB / 467.2 MB, free: 13.18 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001486/0.3934, allocations: 63.89 kB / 467.3 MB, free: 13.11 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.091e-05/0.3935, allocations: 43.98 kB / 467.4 MB, free: 13.07 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002586/0.3961, allocations: 2.007 MB / 469.4 MB, free: 11.07 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.3961, allocations: 7.938 kB / 469.4 MB, free: 11.06 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001388/0.3975, allocations: 0.5933 MB / 470 MB, free: 10.47 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.003623/0.4011, allocations: 2.607 MB / 472.6 MB, free: 7.828 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001552/0.4027, allocations: 0.8528 MB / 473.4 MB, free: 6.945 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.315e-06/0.4027, allocations: 4 kB / 473.4 MB, free: 6.941 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007453/0.4035, allocations: 463.2 kB / 473.9 MB, free: 6.465 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002831/0.4063, allocations: 0.6067 MB / 474.5 MB, free: 5.855 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04668/0.453, allocations: 23.05 MB / 497.5 MB, free: 12.5 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001731/0.4548, allocations: 1.714 MB / 499.2 MB, free: 10.76 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001574/0.4564, allocations: 365.2 kB / 499.6 MB, free: 10.4 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001411/0.4578, allocations: 1.261 MB / 0.4891 GB, free: 9.137 MB / 414.1 MB Notification: Performance of SimCode: time 1.152e-06/0.4578, allocations: 0 / 0.4891 GB, free: 9.137 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.411/1.868, allocations: 60.53 MB / 0.5482 GB, free: 145 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002566/1.869, allocations: 216.5 kB / 0.5484 GB, free: 144.8 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.989/5.858, allocations: 0 / 0.5484 GB, free: 144.8 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 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.mat","/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