Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001468/0.001468, allocations: 103.4 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001868/0.001868, allocations: 216.5 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.341/1.341, allocations: 227.4 MB / 246.8 MB, free: 10.55 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001192/0.001192, allocations: 62.2 kB / 307 MB, free: 0.5391 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08183/0.08304, allocations: 50.54 MB / 357.6 MB, free: 14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.1512/0.2342, allocations: 15.29 MB / 372.9 MB, free: 9.121 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01802/0.2523, allocations: 20.79 MB / 393.7 MB, free: 15.67 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001198/0.2535, allocations: 30.66 kB / 393.7 MB, free: 15.66 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002845/0.2564, allocations: 1.258 MB / 395 MB, free: 14.99 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006202/0.2626, allocations: 2.348 MB / 397.3 MB, free: 13.55 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003939/0.2666, allocations: 1.445 MB / 398.7 MB, free: 12.71 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00896/0.2755, allocations: 6.652 MB / 405.4 MB, free: 9.641 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006821/0.2762, allocations: 480.5 kB / 405.9 MB, free: 9.398 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001372/0.2776, allocations: 1.091 MB / 407 MB, free: 8.879 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001068/0.2787, allocations: 1.136 MB / 408.1 MB, free: 8.215 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000191/0.2789, allocations: 81.34 kB / 408.2 MB, free: 8.211 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004039/0.283, allocations: 1.479 MB / 409.7 MB, free: 7.285 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003093/0.2833, allocations: 345.5 kB / 410 MB, free: 6.945 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001241/0.2845, allocations: 1.436 MB / 411.4 MB, free: 5.5 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004044/0.2886, allocations: 3.954 MB / 415.4 MB, free: 1.531 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.477e-06/0.2886, allocations: 0 / 415.4 MB, free: 1.531 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.2886, allocations: 0 / 415.4 MB, free: 1.531 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.678e-05/0.2886, allocations: 0 / 415.4 MB, free: 1.531 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.004831/0.2935, allocations: 3.826 MB / 419.2 MB, free: 13.62 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.651e-05/0.2935, allocations: 8.031 kB / 419.2 MB, free: 13.62 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001393/0.2937, allocations: 98.5 kB / 419.3 MB, free: 13.51 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003903/0.2941, allocations: 415.8 kB / 419.7 MB, free: 13.1 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003184/0.2973, allocations: 2.498 MB / 422.2 MB, free: 10.53 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.045e-05/0.2973, allocations: 40.98 kB / 422.3 MB, free: 10.49 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001164/0.2974, allocations: 55.98 kB / 422.3 MB, free: 10.43 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001321/0.2988, allocations: 0.7265 MB / 423 MB, free: 9.699 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.247e-05/0.2988, allocations: 0 / 423 MB, free: 9.699 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.89e-05/0.2989, allocations: 20 kB / 423.1 MB, free: 9.68 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.633e-05/0.2989, allocations: 19.98 kB / 423.1 MB, free: 9.66 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001559/0.3005, allocations: 0.8241 MB / 423.9 MB, free: 8.832 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004756/0.3052, allocations: 3.103 MB / 427 MB, free: 5.652 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001217/0.3064, allocations: 0.5723 MB / 427.6 MB, free: 5.066 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009855/0.3074, allocations: 0.6471 MB / 428.2 MB, free: 4.418 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02725/0.3347, allocations: 30.76 MB / 459 MB, free: 1.406 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007389/0.3355, allocations: 361.6 kB / 459.3 MB, free: 1.039 MB / 366.1 MB Notification: Performance of pre-optimization done (n=49): time 2.394e-06/0.3355, allocations: 4 kB / 459.3 MB, free: 1.035 MB / 366.1 MB Notification: Performance of matching and sorting (n=49): time 0.002163/0.3377, allocations: 1.112 MB / 460.5 MB, free: 15.91 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.715e-05/0.3377, allocations: 55.41 kB / 460.5 MB, free: 15.85 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003374/0.3411, allocations: 3.087 MB / 463.6 MB, free: 12.76 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.713e-05/0.3412, allocations: 37.7 kB / 463.6 MB, free: 12.72 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001269/0.3424, allocations: 1.569 MB / 465.2 MB, free: 11.14 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001412/0.3426, allocations: 169.7 kB / 465.4 MB, free: 10.97 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002779/0.3429, allocations: 234.1 kB / 465.6 MB, free: 10.74 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001152/0.343, allocations: 337.9 kB / 465.9 MB, free: 10.4 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005852/0.3436, allocations: 237.9 kB / 466.2 MB, free: 10.17 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007933/0.3444, allocations: 0.6098 MB / 466.8 MB, free: 9.383 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001438/0.3458, allocations: 0.9012 MB / 467.7 MB, free: 8.309 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.824e-06/0.3458, allocations: 4 kB / 467.7 MB, free: 8.305 MB / 382.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001982/0.3478, allocations: 1.249 MB / 468.9 MB, free: 7.047 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.933e-05/0.3479, allocations: 10.97 kB / 468.9 MB, free: 7.039 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001046/0.348, allocations: 87.98 kB / 469 MB, free: 6.953 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.499e-05/0.348, allocations: 16 kB / 469 MB, free: 6.938 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007078/0.3487, allocations: 208.1 kB / 469.2 MB, free: 6.734 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.313e-05/0.3488, allocations: 23.88 kB / 469.3 MB, free: 6.711 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008454/0.3496, allocations: 111 kB / 469.4 MB, free: 6.602 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000103/0.3497, allocations: 64 kB / 469.4 MB, free: 6.539 MB / 382.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.0006118/0.3503, allocations: 458.4 kB / 469.9 MB, free: 6.082 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003401/0.3507, allocations: 391.2 kB / 470.3 MB, free: 5.695 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002879/0.3536, allocations: 1.22 MB / 471.5 MB, free: 4.461 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.716e-06/0.3536, allocations: 8 kB / 471.5 MB, free: 4.453 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/0.3536, allocations: 0 / 471.5 MB, free: 4.453 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.092e-06/0.3536, allocations: 3.984 kB / 471.5 MB, free: 4.449 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003123/0.3567, allocations: 2.135 MB / 473.6 MB, free: 2.25 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.549e-05/0.3568, allocations: 72.06 kB / 473.7 MB, free: 2.18 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004887/0.3573, allocations: 91.86 kB / 473.8 MB, free: 2.09 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.917e-06/0.3574, allocations: 0 / 473.8 MB, free: 2.09 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.457e-05/0.3574, allocations: 35.98 kB / 473.8 MB, free: 2.055 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.853e-06/0.3574, allocations: 4 kB / 473.8 MB, free: 2.051 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/0.3574, allocations: 4.812 kB / 473.8 MB, free: 2.047 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002245/0.3597, allocations: 1.325 MB / 475.2 MB, free: 0.6914 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006453/0.3604, allocations: 499.9 kB / 475.6 MB, free: 184 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002922/0.3607, allocations: 11.98 kB / 475.7 MB, free: 172 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006626/0.3613, allocations: 31.97 kB / 475.7 MB, free: 140 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001506/0.3615, allocations: 59.89 kB / 475.7 MB, free: 80 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.547e-05/0.3616, allocations: 39.98 kB / 475.8 MB, free: 40 kB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002484/0.364, allocations: 2.011 MB / 477.8 MB, free: 14.03 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.3641, allocations: 0 / 477.8 MB, free: 14.03 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001291/0.3654, allocations: 0.5973 MB / 478.4 MB, free: 13.43 MB / 398.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.003502/0.3689, allocations: 2.555 MB / 480.9 MB, free: 10.85 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001736/0.3706, allocations: 0.8166 MB / 481.8 MB, free: 10.01 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.3706, allocations: 5.375 kB / 481.8 MB, free: 10 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007786/0.3714, allocations: 443.1 kB / 482.2 MB, free: 9.543 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002683/0.3741, allocations: 0.6587 MB / 482.9 MB, free: 8.879 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02377/0.3979, allocations: 22.13 MB / 0.4932 GB, free: 452 kB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001094/0.399, allocations: 1.714 MB / 0.4948 GB, free: 14.7 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001306/0.4003, allocations: 357.3 kB / 0.4952 GB, free: 14.34 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001186/0.4015, allocations: 1.265 MB / 0.4964 GB, free: 13.08 MB / 430.1 MB Notification: Performance of SimCode: time 5.21e-07/0.4015, allocations: 4 kB / 0.4964 GB, free: 13.07 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.229/0.6305, allocations: 62.32 MB / 0.5573 GB, free: 132.2 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.827/9.457, allocations: 4.781 kB / 0.5573 GB, free: 132.2 MB / 446.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel.fmu > Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches