Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001133/0.001133, allocations: 186.5 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.418/1.418, allocations: 222.9 MB / 240.9 MB, free: 11.01 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001121/0.001121, allocations: 103.3 kB / 291.2 MB, free: 10.94 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009221/0.0009223, allocations: 39.94 kB / 350 MB, free: 76 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3032/0.3041, allocations: 49.44 MB / 399.5 MB, free: 33.37 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.GenerationOfFMUs): time 0.005751/0.3099, allocations: 5.96 MB / 405.4 MB, free: 27.39 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003031/0.313, allocations: 1.618 MB / 407.1 MB, free: 25.77 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005237/0.3136, allocations: 31.81 kB / 407.1 MB, free: 25.74 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004349/0.314, allocations: 178.5 kB / 407.3 MB, free: 25.57 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003888/0.3144, allocations: 178.4 kB / 407.4 MB, free: 25.39 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007814/0.3152, allocations: 455.6 kB / 407.9 MB, free: 24.95 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009435/0.3162, allocations: 1.321 MB / 409.2 MB, free: 23.62 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006666/0.3168, allocations: 0.553 MB / 409.7 MB, free: 23.04 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004007/0.3173, allocations: 418.2 kB / 410.2 MB, free: 22.63 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003294/0.3176, allocations: 485.2 kB / 410.6 MB, free: 22.15 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001001/0.3177, allocations: 72 kB / 410.7 MB, free: 22.08 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001736/0.3179, allocations: 80 kB / 410.8 MB, free: 22 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001264/0.318, allocations: 223 kB / 411 MB, free: 21.79 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003173/0.3183, allocations: 0.567 MB / 411.6 MB, free: 21.21 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008174/0.3192, allocations: 1.453 MB / 413 MB, free: 19.76 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.3192, allocations: 0 / 413 MB, free: 19.76 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.182e-06/0.3192, allocations: 4 kB / 413 MB, free: 19.75 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.476e-05/0.3192, allocations: 0 / 413 MB, free: 19.75 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.001757/0.321, allocations: 1.454 MB / 414.5 MB, free: 18.25 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.058e-05/0.321, allocations: 16.02 kB / 414.5 MB, free: 18.23 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001428/0.3212, allocations: 138.3 kB / 414.6 MB, free: 18.09 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007685/0.322, allocations: 0.7159 MB / 415.3 MB, free: 17.34 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.475e-05/0.322, allocations: 90.41 kB / 415.4 MB, free: 17.25 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001112/0.3221, allocations: 123.9 kB / 415.6 MB, free: 17.12 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001395/0.3235, allocations: 1.268 MB / 416.8 MB, free: 15.69 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.959e-05/0.3236, allocations: 11.88 kB / 416.8 MB, free: 15.68 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.857e-05/0.3236, allocations: 48 kB / 416.9 MB, free: 15.63 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.856e-05/0.3237, allocations: 32 kB / 416.9 MB, free: 15.6 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001026/0.3247, allocations: 0.689 MB / 417.6 MB, free: 14.91 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004268/0.329, allocations: 6.82 MB / 424.4 MB, free: 7.754 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005796/0.3296, allocations: 273.2 kB / 424.7 MB, free: 7.469 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002989/0.3299, allocations: 177.7 kB / 424.9 MB, free: 7.289 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002185/0.3301, allocations: 89.03 kB / 424.9 MB, free: 7.184 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.224e-05/0.3302, allocations: 38.56 kB / 425 MB, free: 7.137 MB / 298.7 MB Notification: Performance of pre-optimization done (n=27): time 2.765e-06/0.3302, allocations: 0 / 425 MB, free: 7.137 MB / 298.7 MB Notification: Performance of matching and sorting (n=29): time 0.001995/0.3322, allocations: 1.407 MB / 426.4 MB, free: 5.625 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.464e-05/0.3322, allocations: 85.05 kB / 426.5 MB, free: 5.523 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005696/0.3328, allocations: 0.653 MB / 427.1 MB, free: 4.859 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.899e-05/0.3328, allocations: 33.7 kB / 427.2 MB, free: 4.82 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002442/0.3331, allocations: 0.6836 MB / 427.8 MB, free: 4.125 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.437e-05/0.3331, allocations: 114.4 kB / 428 MB, free: 4.012 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001451/0.3333, allocations: 146.5 kB / 428.1 MB, free: 3.863 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.133e-05/0.3334, allocations: 382.8 kB / 428.5 MB, free: 3.48 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002236/0.3336, allocations: 145.9 kB / 428.6 MB, free: 3.336 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003731/0.334, allocations: 0.5507 MB / 429.2 MB, free: 2.586 MB / 298.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.0007997/0.3348, allocations: 0.9541 MB / 430.1 MB, free: 1.395 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.298e-06/0.3348, allocations: 4 kB / 430.1 MB, free: 1.391 MB / 298.7 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.0009885/0.3358, allocations: 0.7939 MB / 430.9 MB, free: 0.5859 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.226e-05/0.3358, allocations: 12 kB / 430.9 MB, free: 0.5742 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.228e-05/0.3359, allocations: 12 kB / 430.9 MB, free: 0.5625 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002231/0.3361, allocations: 81.62 kB / 431 MB, free: 488 kB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004541/0.3366, allocations: 180.1 kB / 431.2 MB, free: 308 kB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002803/0.3394, allocations: 2.993 MB / 434.2 MB, free: 13.04 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004643/0.3399, allocations: 35.98 kB / 434.2 MB, free: 13 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.084e-05/0.3399, allocations: 40 kB / 434.3 MB, free: 12.96 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.000544/0.3405, allocations: 273.5 kB / 434.5 MB, free: 12.69 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001223/0.3406, allocations: 71.06 kB / 434.6 MB, free: 12.62 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000156/0.3408, allocations: 78.34 kB / 434.7 MB, free: 12.54 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.488e-06/0.3408, allocations: 0 / 434.7 MB, free: 12.54 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.867e-06/0.3408, allocations: 7.938 kB / 434.7 MB, free: 12.53 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.242e-06/0.3408, allocations: 3.984 kB / 434.7 MB, free: 12.53 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001836/0.3426, allocations: 1.239 MB / 435.9 MB, free: 11.21 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.837e-06/0.3427, allocations: 0 / 435.9 MB, free: 11.21 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003124/0.343, allocations: 72.05 kB / 436 MB, free: 11.14 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001801/0.3432, allocations: 65.75 kB / 436.1 MB, free: 11.07 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.787e-05/0.3432, allocations: 12 kB / 436.1 MB, free: 11.06 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002218/0.3454, allocations: 2.776 MB / 438.8 MB, free: 8.02 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.837e-06/0.3455, allocations: 4.031 kB / 438.9 MB, free: 8.016 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006622/0.3521, allocations: 5.474 MB / 444.3 MB, free: 2.094 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000159/0.3523, allocations: 140.2 kB / 444.5 MB, free: 1.938 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.339e-05/0.3523, allocations: 8 kB / 444.5 MB, free: 1.93 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003316/0.3527, allocations: 19.98 kB / 444.5 MB, free: 1.91 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001037/0.3528, allocations: 28 kB / 444.5 MB, free: 1.883 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.37e-05/0.3528, allocations: 12 kB / 444.5 MB, free: 1.871 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0005924/0.3534, allocations: 435 kB / 445 MB, free: 1.453 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.633e-06/0.3534, allocations: 0 / 445 MB, free: 1.453 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001141/0.3546, allocations: 203.9 kB / 445.2 MB, free: 1.254 MB / 314.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.0001481/0.3548, allocations: 107.2 kB / 445.3 MB, free: 1.141 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001073/0.3558, allocations: 0.6646 MB / 445.9 MB, free: 464 kB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.955e-06/0.3558, allocations: 0 / 445.9 MB, free: 464 kB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004539/0.3563, allocations: 358.3 kB / 446.3 MB, free: 80 kB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005683/0.3569, allocations: 81.17 kB / 446.4 MB, free: 0 / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00355/0.3604, allocations: 2.797 MB / 449.1 MB, free: 13.13 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005979/0.3611, allocations: 1.038 MB / 450.2 MB, free: 12.06 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0002912/0.3614, allocations: 86.03 kB / 450.3 MB, free: 11.97 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001051/0.3615, allocations: 59.41 kB / 450.3 MB, free: 11.91 MB / 330.7 MB Notification: Performance of SimCode: time 5.81e-07/0.3615, allocations: 0 / 450.3 MB, free: 11.91 MB / 330.7 MB Notification: Performance of Templates: time 0.01116/0.3726, allocations: 5.943 MB / 456.3 MB, free: 6 MB / 330.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches