Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: translateModel(Modelica.Electrical.Analog.Examples.GenerationOfFMUs,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|capacitor2a.v|capacitor2b.v|directCapacitor1.capacitor.v|directInductor3.inductor.i|inductor4a.i|inductor4b.i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.GenerationOfFMUs") translateModel(Modelica.Electrical.Analog.Examples.GenerationOfFMUs,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|capacitor2a.v|capacitor2b.v|directCapacitor1.capacitor.v|directInductor3.inductor.i|inductor4a.i|inductor4b.i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.GenerationOfFMUs") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002128/0.002128, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.465/1.465, allocations: 226.8 MB / 245.5 MB, free: 6.969 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009975/0.0009974, allocations: 97.86 kB / 296.7 MB, free: 6.473 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001038/0.001038, allocations: 47.92 kB / 356.6 MB, free: 10.59 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2944/0.2954, allocations: 50.45 MB / 407 MB, free: 27.8 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.GenerationOfFMUs): time 0.005779/0.3013, allocations: 5.987 MB / 413 MB, free: 21.79 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003081/0.3044, allocations: 1.662 MB / 414.7 MB, free: 20.13 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005531/0.305, allocations: 39.75 kB / 414.7 MB, free: 20.09 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004546/0.3055, allocations: 182.5 kB / 414.9 MB, free: 19.91 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004045/0.3059, allocations: 182.4 kB / 415.1 MB, free: 19.73 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008117/0.3067, allocations: 439.6 kB / 415.5 MB, free: 19.3 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008848/0.3076, allocations: 1.321 MB / 416.8 MB, free: 17.98 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006374/0.3082, allocations: 0.5491 MB / 417.4 MB, free: 17.41 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004404/0.3087, allocations: 434.1 kB / 417.8 MB, free: 16.98 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00034/0.309, allocations: 473.3 kB / 418.3 MB, free: 16.52 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001037/0.3092, allocations: 76 kB / 418.4 MB, free: 16.44 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001934/0.3094, allocations: 95.92 kB / 418.4 MB, free: 16.35 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001158/0.3095, allocations: 215 kB / 418.7 MB, free: 16.14 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003243/0.3098, allocations: 0.5592 MB / 419.2 MB, free: 15.57 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008432/0.3107, allocations: 1.461 MB / 420.7 MB, free: 14.11 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.85e-06/0.3107, allocations: 0 / 420.7 MB, free: 14.11 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.102e-06/0.3107, allocations: 4 kB / 420.7 MB, free: 14.11 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.494e-05/0.3107, allocations: 0 / 420.7 MB, free: 14.11 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 306 * Number of variables: 306 Notification: Performance of Generate backend data structure: time 0.001776/0.3125, allocations: 1.47 MB / 422.2 MB, free: 12.58 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.542e-05/0.3125, allocations: 8.031 kB / 422.2 MB, free: 12.57 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003322/0.3129, allocations: 154.3 kB / 422.3 MB, free: 12.42 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008542/0.3137, allocations: 0.7236 MB / 423 MB, free: 11.65 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.891e-05/0.3138, allocations: 90.41 kB / 423.1 MB, free: 11.56 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001135/0.3139, allocations: 116 kB / 423.2 MB, free: 11.45 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001416/0.3153, allocations: 1.264 MB / 424.5 MB, free: 10.02 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.135e-05/0.3154, allocations: 7.938 kB / 424.5 MB, free: 10.01 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.253e-05/0.3155, allocations: 56 kB / 424.6 MB, free: 9.953 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.28e-05/0.3155, allocations: 32 kB / 424.6 MB, free: 9.922 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001044/0.3165, allocations: 0.6851 MB / 425.3 MB, free: 9.238 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004539/0.3211, allocations: 6.824 MB / 432.1 MB, free: 2.078 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005866/0.3217, allocations: 273.3 kB / 432.4 MB, free: 1.793 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002997/0.322, allocations: 181.6 kB / 432.5 MB, free: 1.609 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001984/0.3222, allocations: 89.11 kB / 432.6 MB, free: 1.504 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.12e-05/0.3223, allocations: 38.55 kB / 432.7 MB, free: 1.457 MB / 298.7 MB Notification: Performance of pre-optimization done (n=27): time 1.924e-06/0.3223, allocations: 0 / 432.7 MB, free: 1.457 MB / 298.7 MB Notification: Performance of matching and sorting (n=29): time 0.002047/0.3243, allocations: 1.396 MB / 434.1 MB, free: 15.95 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.54e-05/0.3244, allocations: 85.09 kB / 434.1 MB, free: 15.85 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006692/0.3251, allocations: 0.6569 MB / 434.8 MB, free: 15.18 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.407e-05/0.3251, allocations: 29.7 kB / 434.8 MB, free: 15.15 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004211/0.3255, allocations: 0.6875 MB / 435.5 MB, free: 14.45 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.012e-05/0.3256, allocations: 118.4 kB / 435.6 MB, free: 14.33 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001627/0.3258, allocations: 142.5 kB / 435.8 MB, free: 14.19 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001615/0.326, allocations: 386.7 kB / 436.2 MB, free: 13.8 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002509/0.3262, allocations: 137.9 kB / 436.3 MB, free: 13.66 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000493/0.3267, allocations: 0.5546 MB / 436.8 MB, free: 12.91 MB / 314.7 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: directCapacitor1.currentToVoltage.y = $START.directCapacitor1.currentToVoltage.y ($START.inverseCapacitor1.capacitor.v = $START.directCapacitor1.currentToVoltage.y) Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: directInductor3.currentToVoltage.y = $START.directInductor3.currentToVoltage.y ($START.inverseInductor3.inductor.i = $START.directInductor3.currentToVoltage.y) Notification: Performance of analyzeInitialSystem (initialization): time 0.00106/0.3278, allocations: 0.9595 MB / 437.8 MB, free: 11.72 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.23e-06/0.3278, allocations: 8 kB / 437.8 MB, free: 11.71 MB / 314.7 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001208/0.329, allocations: 0.7876 MB / 438.6 MB, free: 10.91 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.569e-05/0.3291, allocations: 12 kB / 438.6 MB, free: 10.9 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.801e-05/0.3291, allocations: 19.94 kB / 438.6 MB, free: 10.88 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002434/0.3293, allocations: 81.62 kB / 438.7 MB, free: 10.79 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005054/0.3298, allocations: 183.7 kB / 438.9 MB, free: 10.61 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00233/0.3322, allocations: 2.99 MB / 441.9 MB, free: 7.355 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003799/0.3326, allocations: 28 kB / 441.9 MB, free: 7.328 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.682e-05/0.3326, allocations: 44 kB / 442 MB, free: 7.285 MB / 314.7 MB Warning: The initial conditions are over specified. The following 2 initial equations are redundant, so they are removed from the initialization system: directCapacitor1.currentToVoltage.y = $START.directCapacitor1.currentToVoltage.y directInductor3.currentToVoltage.y = $START.directInductor3.currentToVoltage.y. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 65 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (91): * Single equations (assignments): 89 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,4,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004232/0.3331, allocations: 271.6 kB / 442.2 MB, free: 7.012 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000105/0.3332, allocations: 75.06 kB / 442.3 MB, free: 6.938 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001114/0.3333, allocations: 78.34 kB / 442.4 MB, free: 6.859 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.818e-06/0.3333, allocations: 4 kB / 442.4 MB, free: 6.855 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.636e-06/0.3333, allocations: 4 kB / 442.4 MB, free: 6.852 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.978e-06/0.3333, allocations: 0 / 442.4 MB, free: 6.852 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00165/0.335, allocations: 1.241 MB / 443.6 MB, free: 5.539 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/0.335, allocations: 0 / 443.6 MB, free: 5.539 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003018/0.3353, allocations: 63.89 kB / 443.7 MB, free: 5.477 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001479/0.3355, allocations: 69.66 kB / 443.7 MB, free: 5.402 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.109e-05/0.3355, allocations: 8 kB / 443.8 MB, free: 5.395 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001971/0.3375, allocations: 2.795 MB / 446.5 MB, free: 2.332 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.3375, allocations: 0 / 446.5 MB, free: 2.332 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005399/0.3429, allocations: 5.471 MB / 452 MB, free: 12.41 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001159/0.343, allocations: 132.3 kB / 452.1 MB, free: 12.26 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.694e-05/0.3431, allocations: 11.98 kB / 452.2 MB, free: 12.25 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002387/0.3433, allocations: 12 kB / 452.2 MB, free: 12.24 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.443e-05/0.3434, allocations: 35.83 kB / 452.2 MB, free: 12.2 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.769e-05/0.3434, allocations: 8 kB / 452.2 MB, free: 12.2 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0004957/0.3439, allocations: 439.1 kB / 452.6 MB, free: 11.77 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.856e-06/0.344, allocations: 0 / 452.6 MB, free: 11.77 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001019/0.345, allocations: 207.9 kB / 452.8 MB, free: 11.57 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (inverseInductor3.inductor.i,inductor4a.i,inductor4b.i,directCapacitor1.currentToVoltage.y,capacitor2a.v,capacitor2b.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,3,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001434/0.3451, allocations: 107.2 kB / 453 MB, free: 11.46 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001058/0.3462, allocations: 0.6562 MB / 453.6 MB, free: 10.79 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.749e-06/0.3462, allocations: 4 kB / 453.6 MB, free: 10.78 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004916/0.3467, allocations: 357.2 kB / 454 MB, free: 10.41 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005526/0.3473, allocations: 80.17 kB / 454 MB, free: 10.32 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003879/0.3512, allocations: 2.791 MB / 456.8 MB, free: 7.457 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006504/0.3518, allocations: 1.039 MB / 457.9 MB, free: 6.391 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.000292/0.3521, allocations: 86.02 kB / 458 MB, free: 6.305 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001095/0.3522, allocations: 63.36 kB / 458 MB, free: 6.242 MB / 330.7 MB Notification: Performance of SimCode: time 3.9e-07/0.3523, allocations: 0 / 458 MB, free: 6.242 MB / 330.7 MB Notification: Performance of Templates: time 0.0127/0.365, allocations: 5.946 MB / 464 MB, free: 340 kB / 330.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.GenerationOfFMUs -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches