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.00123/0.00123, allocations: 103.4 kB / 17.16 MB, free: 6.32 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.001252/0.001252, allocations: 190 kB / 18.07 MB, free: 5.414 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.166/1.166, allocations: 205.1 MB / 223.9 MB, free: 12.39 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.001142/0.001142, allocations: 51.94 kB / 280.1 MB, free: 3.477 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07076/0.07192, allocations: 46.62 MB / 326.7 MB, free: 4.789 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01078/0.08273, allocations: 14.47 MB / 341.2 MB, free: 6.258 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01743/0.1002, allocations: 19.96 MB / 361.1 MB, free: 2.227 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00145/0.1017, allocations: 31.81 kB / 361.1 MB, free: 2.195 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00227/0.104, allocations: 1.075 MB / 362.2 MB, free: 1.109 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004475/0.1085, allocations: 1.926 MB / 364.1 MB, free: 15.17 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002661/0.1111, allocations: 1.16 MB / 365.3 MB, free: 14.01 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.007047/0.1182, allocations: 6.339 MB / 371.6 MB, free: 7.648 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000509/0.1187, allocations: 454.1 kB / 372.1 MB, free: 7.176 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008558/0.1196, allocations: 0.9715 MB / 373.1 MB, free: 6.199 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007728/0.1204, allocations: 1.098 MB / 374.2 MB, free: 5.094 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001469/0.1205, allocations: 51.94 kB / 374.2 MB, free: 5.043 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002447/0.123, allocations: 1.132 MB / 375.3 MB, free: 3.91 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002484/0.1232, allocations: 325.4 kB / 375.7 MB, free: 3.59 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001008/0.1242, allocations: 1.413 MB / 377.1 MB, free: 2.168 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1197/0.2439, allocations: 3.893 MB / 381 MB, free: 23.67 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.049e-06/0.244, allocations: 0 / 381 MB, free: 23.67 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.244, allocations: 1.375 kB / 381 MB, free: 23.67 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.708e-05/0.244, allocations: 0 / 381 MB, free: 23.67 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.004538/0.2486, allocations: 3.857 MB / 384.8 MB, free: 21.49 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.476e-05/0.2486, allocations: 10.2 kB / 384.8 MB, free: 21.49 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001068/0.2487, allocations: 104.8 kB / 384.9 MB, free: 21.45 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003453/0.2491, allocations: 417.1 kB / 385.3 MB, free: 21.24 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002822/0.2519, allocations: 2.503 MB / 387.8 MB, free: 20.4 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.537e-05/0.252, allocations: 36.06 kB / 387.9 MB, free: 20.4 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001074/0.2521, allocations: 57.39 kB / 387.9 MB, free: 20.4 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001177/0.2533, allocations: 0.7311 MB / 388.7 MB, free: 20.36 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.29e-05/0.2533, allocations: 0 / 388.7 MB, free: 20.36 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.329e-05/0.2534, allocations: 17.75 kB / 388.7 MB, free: 20.36 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.896e-05/0.2534, allocations: 20.98 kB / 388.7 MB, free: 20.36 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001345/0.2547, allocations: 0.8245 MB / 389.5 MB, free: 20.35 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003994/0.2587, allocations: 3.112 MB / 392.6 MB, free: 19.82 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009718/0.2597, allocations: 0.5807 MB / 393.2 MB, free: 19.79 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007837/0.2605, allocations: 0.6485 MB / 393.9 MB, free: 19.77 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01964/0.2802, allocations: 30.2 MB / 424.1 MB, free: 10.16 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006555/0.2808, allocations: 371.5 kB / 424.4 MB, free: 9.797 MB / 334.1 MB Notification: Performance of pre-optimization done (n=49): time 2.094e-06/0.2809, allocations: 0 / 424.4 MB, free: 9.797 MB / 334.1 MB Notification: Performance of matching and sorting (n=49): time 0.001863/0.2827, allocations: 1.111 MB / 425.5 MB, free: 8.676 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.515e-05/0.2828, allocations: 55.41 kB / 425.6 MB, free: 8.609 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003045/0.2858, allocations: 3.107 MB / 428.7 MB, free: 5.504 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.582e-05/0.2859, allocations: 37.7 kB / 428.7 MB, free: 5.461 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001074/0.287, allocations: 1.581 MB / 430.3 MB, free: 3.875 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001197/0.2871, allocations: 167.3 kB / 430.5 MB, free: 3.715 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002535/0.2873, allocations: 226.1 kB / 430.7 MB, free: 3.488 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 9.492e-05/0.2874, allocations: 341.9 kB / 431 MB, free: 3.148 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005012/0.288, allocations: 237.9 kB / 431.3 MB, free: 2.918 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006639/0.2886, allocations: 0.6134 MB / 431.9 MB, free: 2.141 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00123/0.2899, allocations: 0.8924 MB / 432.8 MB, free: 1.133 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.429e-06/0.2899, allocations: 0 / 432.8 MB, free: 1.133 MB / 334.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001741/0.2916, allocations: 1.255 MB / 434 MB, free: 15.94 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.801e-05/0.2917, allocations: 8 kB / 434 MB, free: 15.93 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.764e-05/0.2918, allocations: 88.78 kB / 434.1 MB, free: 15.85 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.166e-05/0.2918, allocations: 16 kB / 434.1 MB, free: 15.83 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006309/0.2924, allocations: 207 kB / 434.3 MB, free: 15.64 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.232e-05/0.2925, allocations: 26.08 kB / 434.4 MB, free: 15.62 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009684/0.2934, allocations: 108.9 kB / 434.5 MB, free: 15.52 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.174e-05/0.2935, allocations: 64 kB / 434.5 MB, free: 15.46 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.0005894/0.2941, allocations: 456.7 kB / 435 MB, free: 15.02 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003246/0.2945, allocations: 403.1 kB / 435.4 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002502/0.297, allocations: 1.219 MB / 436.6 MB, free: 13.41 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.173e-06/0.297, allocations: 4 kB / 436.6 MB, free: 13.41 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.482e-06/0.297, allocations: 8.141 kB / 436.6 MB, free: 13.4 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.258e-06/0.297, allocations: 0 / 436.6 MB, free: 13.4 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002803/0.2998, allocations: 2.153 MB / 438.8 MB, free: 11.2 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.022e-05/0.2999, allocations: 68 kB / 438.8 MB, free: 11.13 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004183/0.3003, allocations: 91.02 kB / 438.9 MB, free: 11.04 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.735e-06/0.3003, allocations: 8.062 kB / 438.9 MB, free: 11.04 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.478e-05/0.3004, allocations: 37.67 kB / 439 MB, free: 11 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.042e-06/0.3004, allocations: 5.312 kB / 439 MB, free: 11 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.183e-06/0.3004, allocations: 0 / 439 MB, free: 11 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001913/0.3023, allocations: 1.324 MB / 440.3 MB, free: 9.652 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005572/0.3029, allocations: 497.7 kB / 440.8 MB, free: 9.145 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002801/0.3032, allocations: 12.06 kB / 440.8 MB, free: 9.133 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006438/0.3038, allocations: 31.95 kB / 440.8 MB, free: 9.102 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001303/0.304, allocations: 55.95 kB / 440.9 MB, free: 9.047 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.946e-05/0.304, allocations: 39.98 kB / 440.9 MB, free: 9.008 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002021/0.3061, allocations: 2.021 MB / 442.9 MB, free: 6.996 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.3061, allocations: 0 / 442.9 MB, free: 6.996 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001096/0.3072, allocations: 0.6011 MB / 443.5 MB, free: 6.395 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.00296/0.3102, allocations: 2.574 MB / 446.1 MB, free: 3.949 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001296/0.3115, allocations: 0.8131 MB / 446.9 MB, free: 3.148 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.3115, allocations: 0 / 446.9 MB, free: 3.148 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006641/0.3121, allocations: 448.8 kB / 447.4 MB, free: 2.695 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001614/0.3138, allocations: 0.495 MB / 447.9 MB, free: 2.199 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03566/0.3494, allocations: 23.04 MB / 470.9 MB, free: 9.02 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009253/0.3504, allocations: 1.719 MB / 472.6 MB, free: 7.27 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001088/0.3515, allocations: 365.1 kB / 473 MB, free: 6.91 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001017/0.3525, allocations: 1.272 MB / 474.3 MB, free: 5.637 MB / 382.1 MB Notification: Performance of SimCode: time 6.71e-07/0.3525, allocations: 0 / 474.3 MB, free: 5.637 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 4.415/4.767, allocations: 61.13 MB / 0.5228 GB, free: 8.484 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002795/4.767, allocations: 209.3 kB / 0.523 GB, free: 8.23 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.687/10.45, allocations: 4 kB / 0.523 GB, free: 8.227 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