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.001116/0.001116, allocations: 103.1 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001182/0.001182, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.261/1.261, allocations: 227.4 MB / 246.3 MB, free: 9.047 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001205/0.001205, allocations: 60.59 kB / 306.3 MB, free: 0.7422 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08045/0.08167, allocations: 50.52 MB / 356.9 MB, free: 14.21 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.1491/0.2308, allocations: 15.18 MB / 372 MB, free: 8.957 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01837/0.2492, allocations: 20.99 MB / 393 MB, free: 15.72 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002041/0.2513, allocations: 31.25 kB / 393.1 MB, free: 15.71 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003274/0.2546, allocations: 1.108 MB / 394.2 MB, free: 15.2 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007472/0.2621, allocations: 1.962 MB / 396.1 MB, free: 14.03 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0047/0.2668, allocations: 1.208 MB / 397.3 MB, free: 13.4 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.009945/0.2767, allocations: 6.555 MB / 403.9 MB, free: 10.54 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008261/0.2776, allocations: 446.4 kB / 404.3 MB, free: 10.32 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001959/0.2796, allocations: 1.085 MB / 405.4 MB, free: 9.801 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001361/0.2809, allocations: 1.126 MB / 406.6 MB, free: 9.148 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001947/0.2811, allocations: 54.44 kB / 406.6 MB, free: 9.145 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004503/0.2857, allocations: 1.456 MB / 408.1 MB, free: 8.52 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004614/0.2861, allocations: 314.7 kB / 408.4 MB, free: 8.266 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001776/0.2879, allocations: 1.413 MB / 409.8 MB, free: 6.844 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004819/0.2928, allocations: 3.875 MB / 413.7 MB, free: 2.953 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.2928, allocations: 0 / 413.7 MB, free: 2.953 MB / 318.1 MB Notification: Performance of FrontEnd: time 8.72e-07/0.2928, allocations: 4 kB / 413.7 MB, free: 2.949 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.473e-05/0.2928, allocations: 0 / 413.7 MB, free: 2.949 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.004902/0.2977, allocations: 3.832 MB / 417.5 MB, free: 15.04 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.146e-05/0.2978, allocations: 8.031 kB / 417.5 MB, free: 15.03 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001219/0.2979, allocations: 102.5 kB / 417.6 MB, free: 14.92 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004243/0.2983, allocations: 410.9 kB / 418 MB, free: 14.51 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003324/0.3017, allocations: 2.494 MB / 420.5 MB, free: 11.95 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.948e-05/0.3017, allocations: 41 kB / 420.5 MB, free: 11.91 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000119/0.3019, allocations: 51.98 kB / 420.6 MB, free: 11.86 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00132/0.3032, allocations: 0.7226 MB / 421.3 MB, free: 11.13 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.274e-05/0.3032, allocations: 4 kB / 421.3 MB, free: 11.12 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.016e-05/0.3033, allocations: 20 kB / 421.3 MB, free: 11.11 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.053e-05/0.3033, allocations: 19.98 kB / 421.4 MB, free: 11.09 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001514/0.3048, allocations: 0.8202 MB / 422.2 MB, free: 10.26 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004893/0.3097, allocations: 3.102 MB / 425.3 MB, free: 7.074 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001196/0.311, allocations: 0.576 MB / 425.8 MB, free: 6.492 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009238/0.3119, allocations: 0.6599 MB / 426.5 MB, free: 5.828 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02845/0.3403, allocations: 30.77 MB / 457.3 MB, free: 2.812 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007439/0.3411, allocations: 369.5 kB / 457.6 MB, free: 2.441 MB / 366.1 MB Notification: Performance of pre-optimization done (n=49): time 2.565e-06/0.3411, allocations: 0 / 457.6 MB, free: 2.441 MB / 366.1 MB Notification: Performance of matching and sorting (n=49): time 0.002195/0.3433, allocations: 1.112 MB / 458.8 MB, free: 1.32 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.012e-05/0.3434, allocations: 59.41 kB / 458.8 MB, free: 1.25 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003702/0.3471, allocations: 3.083 MB / 461.9 MB, free: 14.17 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.632e-05/0.3472, allocations: 41.69 kB / 461.9 MB, free: 14.12 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001199/0.3484, allocations: 1.573 MB / 463.5 MB, free: 12.54 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001405/0.3485, allocations: 165.7 kB / 463.7 MB, free: 12.38 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002994/0.3488, allocations: 230.1 kB / 463.9 MB, free: 12.14 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001097/0.349, allocations: 341.9 kB / 464.2 MB, free: 11.8 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005572/0.3495, allocations: 237.9 kB / 464.5 MB, free: 11.57 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007478/0.3503, allocations: 0.6059 MB / 465.1 MB, free: 10.8 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001348/0.3516, allocations: 0.9051 MB / 466 MB, free: 9.719 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.591e-06/0.3517, allocations: 0 / 466 MB, free: 9.719 MB / 382.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002043/0.3537, allocations: 1.245 MB / 467.2 MB, free: 8.465 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.773e-05/0.3537, allocations: 12 kB / 467.2 MB, free: 8.453 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.948e-05/0.3539, allocations: 83.98 kB / 467.3 MB, free: 8.371 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.379e-05/0.3539, allocations: 16 kB / 467.3 MB, free: 8.355 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006892/0.3546, allocations: 204.2 kB / 467.5 MB, free: 8.156 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.336e-05/0.3546, allocations: 23.88 kB / 467.5 MB, free: 8.133 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009435/0.3556, allocations: 111 kB / 467.7 MB, free: 8.023 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001035/0.3557, allocations: 64 kB / 467.7 MB, free: 7.961 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.0007015/0.3564, allocations: 458.4 kB / 468.2 MB, free: 7.504 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004219/0.3568, allocations: 395.2 kB / 468.5 MB, free: 7.113 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002776/0.3596, allocations: 1.219 MB / 469.8 MB, free: 5.875 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.394e-06/0.3596, allocations: 4 kB / 469.8 MB, free: 5.871 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.438e-06/0.3596, allocations: 0 / 469.8 MB, free: 5.871 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.562e-06/0.3596, allocations: 3.984 kB / 469.8 MB, free: 5.867 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003201/0.3628, allocations: 2.143 MB / 471.9 MB, free: 3.66 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.622e-05/0.3629, allocations: 68.06 kB / 472 MB, free: 3.594 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004598/0.3634, allocations: 95.86 kB / 472.1 MB, free: 3.5 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.16e-06/0.3634, allocations: 0 / 472.1 MB, free: 3.5 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.665e-05/0.3635, allocations: 39.98 kB / 472.1 MB, free: 3.461 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.357e-06/0.3635, allocations: 0 / 472.1 MB, free: 3.461 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.3635, allocations: 0 / 472.1 MB, free: 3.461 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002185/0.3657, allocations: 1.325 MB / 473.4 MB, free: 2.105 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007944/0.3665, allocations: 496 kB / 473.9 MB, free: 1.598 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004191/0.3669, allocations: 11.98 kB / 473.9 MB, free: 1.586 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007518/0.3677, allocations: 31.97 kB / 474 MB, free: 1.555 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001626/0.3679, allocations: 59.88 kB / 474 MB, free: 1.496 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.213e-05/0.3679, allocations: 36 kB / 474.1 MB, free: 1.461 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002802/0.3707, allocations: 2.011 MB / 476.1 MB, free: 15.46 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.3708, allocations: 0 / 476.1 MB, free: 15.46 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001374/0.3721, allocations: 0.5973 MB / 476.7 MB, free: 14.86 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.003624/0.3758, allocations: 2.562 MB / 479.2 MB, free: 12.26 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00158/0.3774, allocations: 0.8011 MB / 480 MB, free: 11.44 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.3774, allocations: 1.312 kB / 480 MB, free: 11.44 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007366/0.3781, allocations: 451 kB / 480.5 MB, free: 10.97 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002735/0.3809, allocations: 0.6062 MB / 481.1 MB, free: 10.36 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04269/0.4236, allocations: 22.85 MB / 0.4921 GB, free: 1.195 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001221/0.4248, allocations: 1.71 MB / 0.4938 GB, free: 15.46 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001354/0.4262, allocations: 365.2 kB / 0.4941 GB, free: 15.09 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001188/0.4274, allocations: 1.265 MB / 0.4954 GB, free: 13.83 MB / 430.1 MB Notification: Performance of SimCode: time 6.41e-07/0.4274, allocations: 4 kB / 0.4954 GB, free: 13.82 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2142/0.6416, allocations: 60.87 MB / 0.5548 GB, free: 136.9 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001428/0.6418, allocations: 224.9 kB / 0.555 GB, free: 136.6 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.436/4.077, allocations: 0 / 0.555 GB, free: 136.6 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