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.001527/0.001532, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001994/0.001994, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.373/1.373, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001135/0.001135, allocations: 59.47 kB / 307 MB, free: 0.5625 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08639/0.08754, allocations: 50.54 MB / 357.6 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.1742/0.2618, allocations: 15.3 MB / 372.9 MB, free: 9.117 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02003/0.2818, allocations: 20.8 MB / 393.7 MB, free: 15.68 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002114/0.284, allocations: 30.06 kB / 393.7 MB, free: 15.67 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003426/0.2875, allocations: 1.258 MB / 395 MB, free: 15.01 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007965/0.2955, allocations: 2.348 MB / 397.3 MB, free: 13.57 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004875/0.3004, allocations: 1.442 MB / 398.8 MB, free: 12.73 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01055/0.3109, allocations: 6.658 MB / 405.4 MB, free: 9.656 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000843/0.3118, allocations: 480.1 kB / 405.9 MB, free: 9.414 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001772/0.3136, allocations: 1.084 MB / 407 MB, free: 8.902 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001202/0.3148, allocations: 1.149 MB / 408.1 MB, free: 8.227 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002348/0.315, allocations: 77.09 kB / 408.2 MB, free: 8.227 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005334/0.3204, allocations: 1.477 MB / 409.7 MB, free: 7.293 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003685/0.3208, allocations: 345.4 kB / 410 MB, free: 6.953 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001674/0.3225, allocations: 1.432 MB / 411.4 MB, free: 5.512 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005112/0.3276, allocations: 3.957 MB / 415.4 MB, free: 1.539 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.06e-06/0.3276, allocations: 0 / 415.4 MB, free: 1.539 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.3276, allocations: 0 / 415.4 MB, free: 1.539 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.496e-05/0.3277, allocations: 0 / 415.4 MB, free: 1.539 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.004912/0.3326, allocations: 3.822 MB / 419.2 MB, free: 13.63 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.452e-05/0.3326, allocations: 12.03 kB / 419.2 MB, free: 13.62 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001244/0.3328, allocations: 98.5 kB / 419.3 MB, free: 13.52 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004174/0.3332, allocations: 414.9 kB / 419.7 MB, free: 13.11 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003042/0.3362, allocations: 2.494 MB / 422.2 MB, free: 10.54 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.114e-05/0.3363, allocations: 40.98 kB / 422.3 MB, free: 10.5 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001127/0.3364, allocations: 52 kB / 422.3 MB, free: 10.45 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001232/0.3376, allocations: 0.7265 MB / 423 MB, free: 9.711 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.501e-05/0.3377, allocations: 3.938 kB / 423 MB, free: 9.707 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.227e-05/0.3378, allocations: 20 kB / 423.1 MB, free: 9.688 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.998e-05/0.3378, allocations: 19.98 kB / 423.1 MB, free: 9.668 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001455/0.3392, allocations: 0.8202 MB / 423.9 MB, free: 8.844 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004604/0.3439, allocations: 3.102 MB / 427 MB, free: 5.664 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00117/0.345, allocations: 0.5674 MB / 427.6 MB, free: 5.082 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009785/0.346, allocations: 0.6438 MB / 428.2 MB, free: 4.434 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02984/0.3759, allocations: 30.78 MB / 459 MB, free: 1.414 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001037/0.377, allocations: 361.7 kB / 459.3 MB, free: 1.047 MB / 366.1 MB Notification: Performance of pre-optimization done (n=49): time 3.506e-06/0.377, allocations: 3.938 kB / 459.4 MB, free: 1.043 MB / 366.1 MB Notification: Performance of matching and sorting (n=49): time 0.002651/0.3797, allocations: 1.108 MB / 460.5 MB, free: 15.92 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.325e-05/0.3797, allocations: 59.41 kB / 460.5 MB, free: 15.85 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004531/0.3843, allocations: 3.086 MB / 463.6 MB, free: 12.77 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001157/0.3844, allocations: 37.7 kB / 463.6 MB, free: 12.72 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001373/0.3858, allocations: 1.569 MB / 465.2 MB, free: 11.15 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002133/0.386, allocations: 173.7 kB / 465.4 MB, free: 10.98 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003218/0.3863, allocations: 226.1 kB / 465.6 MB, free: 10.75 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001524/0.3865, allocations: 341.9 kB / 465.9 MB, free: 10.41 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006136/0.3871, allocations: 237.9 kB / 466.2 MB, free: 10.18 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008553/0.388, allocations: 0.6059 MB / 466.8 MB, free: 9.395 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001582/0.3896, allocations: 0.9012 MB / 467.7 MB, free: 8.32 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.092e-05/0.3896, allocations: 4.812 kB / 467.7 MB, free: 8.316 MB / 382.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002396/0.392, allocations: 1.245 MB / 468.9 MB, free: 7.062 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.14e-05/0.3921, allocations: 14.97 kB / 468.9 MB, free: 7.051 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000113/0.3922, allocations: 83.98 kB / 469 MB, free: 6.969 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.355e-05/0.3922, allocations: 16 kB / 469 MB, free: 6.953 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007696/0.393, allocations: 208.2 kB / 469.2 MB, free: 6.75 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.751e-05/0.393, allocations: 19.94 kB / 469.3 MB, free: 6.73 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001147/0.3942, allocations: 113.1 kB / 469.4 MB, free: 6.621 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00012/0.3943, allocations: 64 kB / 469.4 MB, free: 6.559 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.0008873/0.3952, allocations: 461.7 kB / 469.9 MB, free: 6.102 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005835/0.3958, allocations: 403.1 kB / 470.3 MB, free: 5.703 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003102/0.3989, allocations: 1.213 MB / 471.5 MB, free: 4.477 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.247e-06/0.3989, allocations: 4 kB / 471.5 MB, free: 4.473 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.76e-06/0.3989, allocations: 0 / 471.5 MB, free: 4.473 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.344e-06/0.399, allocations: 3.984 kB / 471.5 MB, free: 4.469 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003877/0.4028, allocations: 2.143 MB / 473.6 MB, free: 2.262 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.317e-05/0.4029, allocations: 72.06 kB / 473.7 MB, free: 2.191 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004796/0.4034, allocations: 87.92 kB / 473.8 MB, free: 2.105 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.638e-06/0.4035, allocations: 0 / 473.8 MB, free: 2.105 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.389e-05/0.4035, allocations: 43.92 kB / 473.8 MB, free: 2.062 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.198e-06/0.4035, allocations: 0 / 473.8 MB, free: 2.062 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/0.4035, allocations: 0 / 473.8 MB, free: 2.062 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002349/0.4059, allocations: 1.325 MB / 475.2 MB, free: 0.707 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008151/0.4067, allocations: 496 kB / 475.6 MB, free: 204 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004154/0.4071, allocations: 11.98 kB / 475.7 MB, free: 192 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007571/0.4079, allocations: 33.84 kB / 475.7 MB, free: 160 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001567/0.4081, allocations: 59.89 kB / 475.7 MB, free: 100 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001583/0.4082, allocations: 47.98 kB / 475.8 MB, free: 52 kB / 382.1 MB Notification: Performance of sorting global known variables: time 0.003269/0.4115, allocations: 2.007 MB / 477.8 MB, free: 14.05 MB / 398.1 MB Notification: Performance of sort global known variables: time 3.41e-07/0.4115, allocations: 0 / 477.8 MB, free: 14.05 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001753/0.4133, allocations: 0.6011 MB / 478.4 MB, free: 13.45 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.004257/0.4176, allocations: 2.545 MB / 480.9 MB, free: 10.87 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001925/0.4195, allocations: 0.8256 MB / 481.8 MB, free: 10.02 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.129e-06/0.4196, allocations: 0 / 481.8 MB, free: 10.02 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008526/0.4204, allocations: 439.2 kB / 482.2 MB, free: 9.562 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004271/0.4247, allocations: 0.6566 MB / 482.9 MB, free: 8.902 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03507/0.4598, allocations: 22.13 MB / 0.4932 GB, free: 476 kB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00159/0.4614, allocations: 1.714 MB / 0.4948 GB, free: 14.72 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001612/0.4631, allocations: 357.3 kB / 0.4952 GB, free: 14.37 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001442/0.4645, allocations: 1.272 MB / 0.4964 GB, free: 13.09 MB / 430.1 MB Notification: Performance of SimCode: time 2.555e-06/0.4646, allocations: 0 / 0.4964 GB, free: 13.09 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2853/0.7499, allocations: 62.3 MB / 0.5573 GB, free: 132.2 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.35/11.1, allocations: 9.75 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 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.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_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches