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.0009865/0.0009865, allocations: 96.02 kB / 17.35 MB, free: 6.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001163/0.001163, allocations: 201.8 kB / 18.28 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.169/1.169, allocations: 227.8 MB / 246.8 MB, free: 9.684 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003122/0.0003123, allocations: 4 kB / 307.8 MB, free: 0.543 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09097/0.09131, allocations: 51.52 MB / 359.4 MB, free: 13.01 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.1487/0.2401, allocations: 14.61 MB / 374 MB, free: 8.891 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0165/0.2566, allocations: 20.69 MB / 394.7 MB, free: 480 kB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001119/0.2578, allocations: 30.53 kB / 394.7 MB, free: 468 kB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002493/0.2603, allocations: 1.123 MB / 395.8 MB, free: 15.95 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006025/0.2663, allocations: 1.974 MB / 397.8 MB, free: 14.76 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003736/0.2701, allocations: 1.2 MB / 399 MB, free: 14.14 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.008321/0.2784, allocations: 6.558 MB / 405.5 MB, free: 11.25 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000599/0.279, allocations: 447.7 kB / 406 MB, free: 11.03 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001242/0.2803, allocations: 1.068 MB / 407 MB, free: 10.52 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009145/0.2812, allocations: 1.107 MB / 408.1 MB, free: 9.891 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001214/0.2813, allocations: 44.28 kB / 408.2 MB, free: 9.891 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003535/0.2849, allocations: 1.471 MB / 409.7 MB, free: 9.238 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002386/0.2851, allocations: 297.5 kB / 410 MB, free: 8.945 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001057/0.2862, allocations: 1.422 MB / 411.4 MB, free: 7.508 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003551/0.2897, allocations: 3.82 MB / 415.2 MB, free: 3.672 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.456e-06/0.2897, allocations: 0 / 415.2 MB, free: 3.672 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.243e-06/0.2897, allocations: 0 / 415.2 MB, free: 3.672 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.371e-05/0.2898, allocations: 0 / 415.2 MB, free: 3.672 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.003994/0.2938, allocations: 3.338 MB / 418.5 MB, free: 264 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.797e-05/0.2938, allocations: 12.03 kB / 418.5 MB, free: 252 kB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001164/0.2939, allocations: 98.5 kB / 418.6 MB, free: 144 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003499/0.2943, allocations: 411.2 kB / 419 MB, free: 15.73 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002825/0.2971, allocations: 2.494 MB / 421.5 MB, free: 13.16 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.816e-05/0.2972, allocations: 37 kB / 421.6 MB, free: 13.12 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001109/0.2973, allocations: 55.91 kB / 421.6 MB, free: 13.07 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001235/0.2985, allocations: 0.7516 MB / 422.4 MB, free: 12.32 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.303e-05/0.2986, allocations: 0 / 422.4 MB, free: 12.32 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.456e-05/0.2986, allocations: 24 kB / 422.4 MB, free: 12.29 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.877e-05/0.2986, allocations: 19.98 kB / 422.4 MB, free: 12.27 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001484/0.3001, allocations: 0.867 MB / 423.3 MB, free: 11.4 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00422/0.3044, allocations: 3.118 MB / 426.4 MB, free: 8.199 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001124/0.3055, allocations: 0.6152 MB / 427 MB, free: 7.578 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009349/0.3064, allocations: 0.6709 MB / 427.7 MB, free: 6.902 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.025/0.3315, allocations: 30.8 MB / 458.5 MB, free: 3.855 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007152/0.3322, allocations: 385.6 kB / 458.9 MB, free: 3.461 MB / 366.1 MB Notification: Performance of pre-optimization done (n=49): time 2.194e-06/0.3322, allocations: 0 / 458.9 MB, free: 3.461 MB / 366.1 MB Notification: Performance of matching and sorting (n=49): time 0.002141/0.3344, allocations: 1.171 MB / 460 MB, free: 2.285 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.811e-05/0.3344, allocations: 63.39 kB / 460.1 MB, free: 2.211 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003462/0.3379, allocations: 3.087 MB / 463.2 MB, free: 15.12 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.374e-05/0.3379, allocations: 37.69 kB / 463.2 MB, free: 15.08 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001174/0.3391, allocations: 1.569 MB / 464.8 MB, free: 13.5 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001396/0.3393, allocations: 177.7 kB / 465 MB, free: 13.33 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.35e-05/0.3394, allocations: 65.69 kB / 465 MB, free: 13.26 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001082/0.3395, allocations: 341.9 kB / 465.4 MB, free: 12.92 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005562/0.34, allocations: 265.8 kB / 465.6 MB, free: 12.66 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007365/0.3408, allocations: 0.6254 MB / 466.3 MB, free: 11.86 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001409/0.3422, allocations: 0.948 MB / 467.2 MB, free: 10.74 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.414e-06/0.3422, allocations: 0 / 467.2 MB, free: 10.74 MB / 382.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002021/0.3443, allocations: 1.288 MB / 468.5 MB, free: 9.441 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.056e-05/0.3443, allocations: 8 kB / 468.5 MB, free: 9.434 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.361e-05/0.3444, allocations: 80.88 kB / 468.6 MB, free: 9.355 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.476e-05/0.3444, allocations: 20 kB / 468.6 MB, free: 9.336 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006668/0.3451, allocations: 211.8 kB / 468.8 MB, free: 9.129 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.065e-05/0.3451, allocations: 27.86 kB / 468.8 MB, free: 9.102 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008783/0.346, allocations: 119 kB / 468.9 MB, free: 8.984 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.336e-05/0.3461, allocations: 64 kB / 469 MB, free: 8.922 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.000625/0.3467, allocations: 469.7 kB / 469.5 MB, free: 8.457 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003638/0.3471, allocations: 395.1 kB / 469.9 MB, free: 8.066 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002729/0.3499, allocations: 1.246 MB / 471.1 MB, free: 6.809 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.502e-06/0.3499, allocations: 4 kB / 471.1 MB, free: 6.805 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.092e-06/0.3499, allocations: 4 kB / 471.1 MB, free: 6.801 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.46e-06/0.3499, allocations: 3.984 kB / 471.1 MB, free: 6.797 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003031/0.3529, allocations: 2.186 MB / 473.3 MB, free: 4.543 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.883e-05/0.353, allocations: 68 kB / 473.4 MB, free: 4.477 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004466/0.3535, allocations: 107.9 kB / 473.5 MB, free: 4.371 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.048e-06/0.3535, allocations: 0 / 473.5 MB, free: 4.371 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.399e-05/0.3535, allocations: 36 kB / 473.5 MB, free: 4.336 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.715e-06/0.3536, allocations: 0 / 473.5 MB, free: 4.336 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/0.3536, allocations: 7.922 kB / 473.5 MB, free: 4.328 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002152/0.3557, allocations: 1.395 MB / 474.9 MB, free: 2.906 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006208/0.3563, allocations: 496 kB / 475.4 MB, free: 2.398 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003189/0.3567, allocations: 8 kB / 475.4 MB, free: 2.391 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007049/0.3574, allocations: 44.03 kB / 475.4 MB, free: 2.348 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001453/0.3575, allocations: 63.88 kB / 475.5 MB, free: 2.285 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.315e-05/0.3576, allocations: 36 kB / 475.5 MB, free: 2.25 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002556/0.3602, allocations: 2.01 MB / 477.6 MB, free: 252 kB / 382.1 MB Notification: Performance of sort global known variables: time 2.9e-07/0.3602, allocations: 0 / 477.6 MB, free: 252 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.001296/0.3615, allocations: 0.5933 MB / 478.1 MB, free: 15.65 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.00337/0.3649, allocations: 2.615 MB / 480.8 MB, free: 13 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001508/0.3664, allocations: 0.853 MB / 481.6 MB, free: 12.12 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.3664, allocations: 0 / 481.6 MB, free: 12.12 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007157/0.3671, allocations: 467.2 kB / 482.1 MB, free: 11.64 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00273/0.3699, allocations: 0.6069 MB / 482.7 MB, free: 11.03 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03896/0.4088, allocations: 23.05 MB / 0.4939 GB, free: 1.672 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00111/0.41, allocations: 1.714 MB / 0.4955 GB, free: 15.93 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001254/0.4112, allocations: 365.3 kB / 0.4959 GB, free: 15.56 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001141/0.4124, allocations: 1.257 MB / 0.4971 GB, free: 14.31 MB / 430.1 MB Notification: Performance of SimCode: time 1.001e-06/0.4124, allocations: 0 / 0.4971 GB, free: 14.31 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.411/2.823, allocations: 60.56 MB / 0.5563 GB, free: 136.5 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001471/2.824, allocations: 206.6 kB / 0.5565 GB, free: 136.3 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.314/6.138, allocations: 3.828 kB / 0.5565 GB, free: 136.3 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