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) 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 3.2.3+maint.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001219/0.001219, allocations: 114.6 kB / 17.28 MB, free: 6.219 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.001109/0.001109, allocations: 189.3 kB / 18.2 MB, free: 5.301 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.636/1.636, allocations: 205.1 MB / 224.1 MB, free: 12.45 MB / 190.1 MB 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.001729/0.001729, allocations: 55.92 kB / 280.2 MB, free: 3.406 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1381/0.1399, allocations: 46.63 MB / 326.9 MB, free: 4.703 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01629/0.1562, allocations: 14.46 MB / 341.3 MB, free: 6.176 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.02472/0.181, allocations: 19.55 MB / 360.9 MB, free: 2.555 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001991/0.183, allocations: 31.81 kB / 360.9 MB, free: 2.523 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002937/0.186, allocations: 1.083 MB / 362 MB, free: 1.43 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007961/0.194, allocations: 1.985 MB / 364 MB, free: 15.43 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00586/0.1999, allocations: 1.215 MB / 365.2 MB, free: 14.21 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01195/0.2119, allocations: 6.53 MB / 371.7 MB, free: 7.664 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001028/0.2129, allocations: 465.7 kB / 372.2 MB, free: 7.18 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002031/0.215, allocations: 1.011 MB / 373.2 MB, free: 6.164 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00126/0.2162, allocations: 1.114 MB / 374.3 MB, free: 5.043 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001669/0.2164, allocations: 76 kB / 374.4 MB, free: 4.969 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004901/0.2213, allocations: 1.167 MB / 375.6 MB, free: 3.801 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003341/0.2217, allocations: 337.5 kB / 375.9 MB, free: 3.469 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001263/0.2229, allocations: 1.452 MB / 377.3 MB, free: 2.008 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2675/0.4905, allocations: 3.951 MB / 381.3 MB, free: 24.35 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.776e-06/0.4905, allocations: 3.984 kB / 381.3 MB, free: 24.35 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.4905, allocations: 2.719 kB / 381.3 MB, free: 24.35 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.000103/0.4906, allocations: 0 / 381.3 MB, free: 24.35 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.006455/0.4971, allocations: 3.854 MB / 385.1 MB, free: 22.17 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.849e-05/0.4972, allocations: 10.34 kB / 385.2 MB, free: 22.17 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001426/0.4973, allocations: 98.41 kB / 385.3 MB, free: 22.13 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005158/0.4978, allocations: 415.8 kB / 385.7 MB, free: 21.92 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004443/0.5023, allocations: 2.504 MB / 388.2 MB, free: 21.08 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.354e-05/0.5023, allocations: 38.59 kB / 388.2 MB, free: 21.08 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001611/0.5025, allocations: 58.44 kB / 388.3 MB, free: 21.07 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001714/0.5042, allocations: 0.7294 MB / 389 MB, free: 21.03 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.071e-05/0.5043, allocations: 1.281 kB / 389 MB, free: 21.03 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.935e-05/0.5044, allocations: 17.48 kB / 389 MB, free: 21.03 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.008e-05/0.5044, allocations: 25.38 kB / 389 MB, free: 21.03 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00182/0.5062, allocations: 0.8205 MB / 389.8 MB, free: 21.03 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005646/0.5119, allocations: 3.115 MB / 393 MB, free: 20.5 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00106/0.513, allocations: 0.584 MB / 393.5 MB, free: 20.46 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001026/0.514, allocations: 0.6478 MB / 394.2 MB, free: 20.44 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02956/0.5436, allocations: 30.2 MB / 424.4 MB, free: 10.3 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007987/0.5444, allocations: 357.7 kB / 424.7 MB, free: 9.938 MB / 334.1 MB Notification: Performance of pre-optimization done (n=49): time 2.454e-06/0.5444, allocations: 4 kB / 424.7 MB, free: 9.934 MB / 334.1 MB Notification: Performance of matching and sorting (n=49): time 0.002378/0.5468, allocations: 1.118 MB / 425.9 MB, free: 8.809 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.256e-05/0.5469, allocations: 59.39 kB / 425.9 MB, free: 8.738 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004569/0.5515, allocations: 3.104 MB / 429 MB, free: 5.637 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.502e-05/0.5516, allocations: 41.7 kB / 429.1 MB, free: 5.59 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001622/0.5532, allocations: 1.577 MB / 430.6 MB, free: 4.008 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001672/0.5534, allocations: 160.9 kB / 430.8 MB, free: 3.852 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003799/0.5538, allocations: 238.1 kB / 431 MB, free: 3.613 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001925/0.554, allocations: 334 kB / 431.4 MB, free: 3.281 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005525/0.5545, allocations: 248.8 kB / 431.6 MB, free: 3.043 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008495/0.5554, allocations: 0.6011 MB / 432.2 MB, free: 2.277 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00155/0.5569, allocations: 0.8967 MB / 433.1 MB, free: 1.266 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.686e-06/0.557, allocations: 4 kB / 433.1 MB, free: 1.262 MB / 334.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002067/0.559, allocations: 1.243 MB / 434.3 MB, free: 84 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.589e-05/0.5591, allocations: 13.64 kB / 434.4 MB, free: 72 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001245/0.5592, allocations: 81.08 kB / 434.4 MB, free: 15.99 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.722e-05/0.5592, allocations: 23.94 kB / 434.5 MB, free: 15.96 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000675/0.5599, allocations: 203 kB / 434.7 MB, free: 15.78 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.489e-05/0.56, allocations: 30.08 kB / 434.7 MB, free: 15.76 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001278/0.5612, allocations: 107 kB / 434.8 MB, free: 15.65 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001197/0.5614, allocations: 64 kB / 434.9 MB, free: 15.59 MB / 350.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.0007803/0.5622, allocations: 459.4 kB / 435.3 MB, free: 15.14 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004685/0.5626, allocations: 403.1 kB / 435.7 MB, free: 14.75 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002968/0.5656, allocations: 1.226 MB / 436.9 MB, free: 13.54 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.067e-06/0.5656, allocations: 4 kB / 436.9 MB, free: 13.54 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.878e-06/0.5657, allocations: 0 / 436.9 MB, free: 13.54 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.101e-06/0.5657, allocations: 0 / 436.9 MB, free: 13.54 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003811/0.5695, allocations: 2.159 MB / 439.1 MB, free: 11.32 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.617e-05/0.5696, allocations: 68 kB / 439.2 MB, free: 11.26 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004684/0.5701, allocations: 91.36 kB / 439.2 MB, free: 11.17 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.202e-05/0.5701, allocations: 11.98 kB / 439.3 MB, free: 11.16 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.987e-05/0.5702, allocations: 37.08 kB / 439.3 MB, free: 11.13 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.825e-06/0.5702, allocations: 0 / 439.3 MB, free: 11.13 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.5702, allocations: 4 kB / 439.3 MB, free: 11.12 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002315/0.5725, allocations: 1.321 MB / 440.6 MB, free: 9.781 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008064/0.5733, allocations: 496 kB / 441.1 MB, free: 9.273 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003175/0.5736, allocations: 20.05 kB / 441.1 MB, free: 9.254 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006597/0.5743, allocations: 23.97 kB / 441.1 MB, free: 9.23 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001801/0.5745, allocations: 67.31 kB / 441.2 MB, free: 9.168 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.702e-05/0.5746, allocations: 36 kB / 441.2 MB, free: 9.133 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002396/0.577, allocations: 2.019 MB / 443.3 MB, free: 7.121 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.577, allocations: 0 / 443.3 MB, free: 7.121 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001716/0.5787, allocations: 0.5934 MB / 443.9 MB, free: 6.527 MB / 350.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.004015/0.5827, allocations: 2.573 MB / 446.4 MB, free: 4.07 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001715/0.5845, allocations: 0.8304 MB / 447.3 MB, free: 3.254 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.5845, allocations: 0 / 447.3 MB, free: 3.254 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007751/0.5853, allocations: 445.7 kB / 447.7 MB, free: 2.805 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001969/0.5872, allocations: 0.5431 MB / 448.2 MB, free: 2.262 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04543/0.6327, allocations: 23.03 MB / 471.3 MB, free: 9.082 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001222/0.634, allocations: 1.718 MB / 473 MB, free: 7.332 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001295/0.6353, allocations: 361.4 kB / 473.3 MB, free: 6.973 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001391/0.6367, allocations: 1.276 MB / 474.6 MB, free: 5.695 MB / 382.1 MB Notification: Performance of SimCode: time 1.183e-06/0.6367, allocations: 4 kB / 474.6 MB, free: 5.691 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6252/1.262, allocations: 62.22 MB / 0.5243 GB, free: 7.469 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002692/1.262, allocations: 209.4 kB / 0.5245 GB, free: 7.215 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.175/6.437, allocations: 0 / 0.5245 GB, free: 7.215 MB / 446.1 MB (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 --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) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/InvertersExtendedModel/InvertersExtendedModel.csv","../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches