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.001141/0.001141, allocations: 110.6 kB / 16.62 MB, free: 6.961 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.001165/0.001165, allocations: 190 kB / 17.54 MB, free: 6.066 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.322/1.322, allocations: 222.9 MB / 241.2 MB, free: 13.74 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001062/0.001062, allocations: 47.17 kB / 300.2 MB, free: 5.902 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0847/0.08578, allocations: 49.44 MB / 349.7 MB, free: 4.457 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01488/0.1007, allocations: 15.16 MB / 364.8 MB, free: 5.227 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1931/0.2938, allocations: 20.57 MB / 385.4 MB, free: 7.57 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002765/0.2967, allocations: 31.41 kB / 385.4 MB, free: 7.559 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00336/0.3001, allocations: 1.106 MB / 386.5 MB, free: 7.059 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007406/0.3075, allocations: 2.019 MB / 388.6 MB, free: 5.934 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005201/0.3127, allocations: 1.254 MB / 389.8 MB, free: 5.309 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.009571/0.3223, allocations: 6.674 MB / 396.5 MB, free: 2.801 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006879/0.323, allocations: 473.5 kB / 397 MB, free: 2.574 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001662/0.3247, allocations: 1.123 MB / 398.1 MB, free: 2.082 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00104/0.3257, allocations: 1.141 MB / 399.2 MB, free: 1.414 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001726/0.3259, allocations: 76.62 kB / 399.3 MB, free: 1.414 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00386/0.3298, allocations: 1.482 MB / 400.8 MB, free: 0.7891 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000219/0.33, allocations: 343.6 kB / 401.1 MB, free: 0.5156 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001138/0.3312, allocations: 1.434 MB / 402.5 MB, free: 15.57 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004236/0.3354, allocations: 3.945 MB / 406.5 MB, free: 12.17 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.3354, allocations: 0 / 406.5 MB, free: 12.17 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.3354, allocations: 0 / 406.5 MB, free: 12.17 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.632e-05/0.3355, allocations: 0 / 406.5 MB, free: 12.17 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.004684/0.3402, allocations: 3.823 MB / 410.3 MB, free: 8.273 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.732e-05/0.3402, allocations: 12.03 kB / 410.3 MB, free: 8.262 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001221/0.3403, allocations: 102.5 kB / 410.4 MB, free: 8.152 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004016/0.3408, allocations: 414.9 kB / 410.8 MB, free: 7.742 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003047/0.3438, allocations: 2.479 MB / 413.3 MB, free: 5.188 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.837e-05/0.3439, allocations: 37 kB / 413.3 MB, free: 5.152 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001212/0.344, allocations: 60.7 kB / 413.4 MB, free: 5.094 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001308/0.3453, allocations: 0.7343 MB / 414.1 MB, free: 4.355 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.421e-05/0.3453, allocations: 0 / 414.1 MB, free: 4.355 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.694e-05/0.3454, allocations: 16 kB / 414.2 MB, free: 4.34 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.194e-05/0.3454, allocations: 23.98 kB / 414.2 MB, free: 4.316 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001477/0.3469, allocations: 0.8124 MB / 415 MB, free: 3.5 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00473/0.3516, allocations: 3.114 MB / 418.1 MB, free: 312 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001148/0.3528, allocations: 0.5723 MB / 418.7 MB, free: 15.72 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009525/0.3538, allocations: 0.6425 MB / 419.3 MB, free: 15.07 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02843/0.3822, allocations: 30.14 MB / 449.5 MB, free: 12.83 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008575/0.3831, allocations: 369.3 kB / 449.8 MB, free: 12.46 MB / 366.1 MB Notification: Performance of pre-optimization done (n=49): time 3.086e-06/0.3831, allocations: 0 / 449.8 MB, free: 12.46 MB / 366.1 MB Notification: Performance of matching and sorting (n=49): time 0.002245/0.3854, allocations: 1.108 MB / 450.9 MB, free: 11.34 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.744e-05/0.3854, allocations: 63.41 kB / 451 MB, free: 11.27 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003545/0.389, allocations: 3.087 MB / 454.1 MB, free: 8.18 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.695e-05/0.3891, allocations: 33.7 kB / 454.1 MB, free: 8.141 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001209/0.3903, allocations: 1.58 MB / 455.7 MB, free: 6.551 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001452/0.3904, allocations: 165.7 kB / 455.9 MB, free: 6.387 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002805/0.3907, allocations: 238 kB / 456.1 MB, free: 6.148 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001403/0.3909, allocations: 337.9 kB / 456.4 MB, free: 5.812 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006428/0.3915, allocations: 245.9 kB / 456.7 MB, free: 5.574 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007652/0.3923, allocations: 0.5981 MB / 457.3 MB, free: 4.801 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001348/0.3937, allocations: 0.8974 MB / 458.2 MB, free: 3.734 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.124e-06/0.3937, allocations: 4 kB / 458.2 MB, free: 3.73 MB / 366.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001956/0.3957, allocations: 1.241 MB / 459.4 MB, free: 2.48 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.167e-05/0.3957, allocations: 15.94 kB / 459.4 MB, free: 2.465 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.94e-05/0.3958, allocations: 88.14 kB / 459.5 MB, free: 2.379 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.475e-05/0.3958, allocations: 16 kB / 459.5 MB, free: 2.363 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006912/0.3965, allocations: 203.6 kB / 459.7 MB, free: 2.164 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.11e-05/0.3966, allocations: 23.94 kB / 459.7 MB, free: 2.141 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000891/0.3975, allocations: 103.1 kB / 459.8 MB, free: 2.039 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.7e-05/0.3976, allocations: 68 kB / 459.9 MB, free: 1.973 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.0007887/0.3984, allocations: 449.5 kB / 460.3 MB, free: 1.523 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003439/0.3987, allocations: 403.1 kB / 460.7 MB, free: 1.125 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003004/0.4017, allocations: 1.218 MB / 462 MB, free: 15.89 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.115e-06/0.4017, allocations: 4 kB / 462 MB, free: 15.89 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.411e-06/0.4017, allocations: 0 / 462 MB, free: 15.89 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.853e-06/0.4018, allocations: 7.922 kB / 462 MB, free: 15.89 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003139/0.4049, allocations: 2.154 MB / 464.1 MB, free: 13.66 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.043e-05/0.405, allocations: 68 kB / 464.2 MB, free: 13.6 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004767/0.4055, allocations: 91.86 kB / 464.3 MB, free: 13.51 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.763e-06/0.4055, allocations: 4.062 kB / 464.3 MB, free: 13.5 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.814e-05/0.4056, allocations: 39.98 kB / 464.3 MB, free: 13.46 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.679e-06/0.4056, allocations: 0 / 464.3 MB, free: 13.46 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.4056, allocations: 7.938 kB / 464.3 MB, free: 13.46 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002111/0.4077, allocations: 1.313 MB / 465.6 MB, free: 12.11 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006559/0.4084, allocations: 492.1 kB / 466.1 MB, free: 11.61 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003051/0.4087, allocations: 11.98 kB / 466.1 MB, free: 11.6 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007039/0.4094, allocations: 32.03 kB / 466.2 MB, free: 11.57 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001495/0.4096, allocations: 55.95 kB / 466.2 MB, free: 11.51 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.14e-05/0.4096, allocations: 43.98 kB / 466.3 MB, free: 11.47 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002492/0.4121, allocations: 2.007 MB / 468.3 MB, free: 9.469 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.4121, allocations: 0 / 468.3 MB, free: 9.469 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001377/0.4135, allocations: 0.5933 MB / 468.9 MB, free: 8.875 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.003461/0.417, allocations: 2.552 MB / 471.4 MB, free: 6.289 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001637/0.4186, allocations: 0.8293 MB / 472.2 MB, free: 5.43 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.4187, allocations: 0 / 472.2 MB, free: 5.43 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007598/0.4194, allocations: 443 kB / 472.7 MB, free: 4.973 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002468/0.4219, allocations: 0.6509 MB / 473.3 MB, free: 4.32 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04313/0.465, allocations: 22.87 MB / 496.2 MB, free: 11.14 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001318/0.4664, allocations: 1.706 MB / 497.9 MB, free: 9.406 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001363/0.4678, allocations: 361.3 kB / 498.3 MB, free: 9.047 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001401/0.4692, allocations: 1.261 MB / 499.5 MB, free: 7.785 MB / 414.1 MB Notification: Performance of SimCode: time 1.032e-06/0.4692, allocations: 0 / 499.5 MB, free: 7.785 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2448/0.714, allocations: 61.94 MB / 0.5483 GB, free: 147.8 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001881/0.7142, allocations: 213.3 kB / 0.5485 GB, free: 147.6 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.59/4.304, allocations: 0 / 0.5485 GB, free: 147.6 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