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/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: 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/ModelicaServices trunk/package.mo): time 0.001121/0.001121, allocations: 109.1 kB / 18.45 MB, free: 4.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001136/0.001136, allocations: 206.8 kB / 19.4 MB, free: 3.699 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.345/1.345, allocations: 227.4 MB / 247.6 MB, free: 10.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001765/0.001765, allocations: 63.91 kB / 359.4 MB, free: 12.92 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2798/0.2816, allocations: 50.54 MB / 409.9 MB, free: 1.633 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.GenerationOfFMUs): time 0.006875/0.2885, allocations: 6.015 MB / 416 MB, free: 11.59 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003942/0.2925, allocations: 1.73 MB / 417.7 MB, free: 9.859 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008719/0.2934, allocations: 31.81 kB / 417.7 MB, free: 9.828 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007907/0.2942, allocations: 249.6 kB / 418 MB, free: 9.582 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000902/0.2951, allocations: 221.7 kB / 418.2 MB, free: 9.363 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001245/0.2964, allocations: 0.5188 MB / 418.7 MB, free: 8.844 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001462/0.2979, allocations: 1.399 MB / 420.1 MB, free: 7.434 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000804/0.2987, allocations: 0.6208 MB / 420.7 MB, free: 6.789 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005233/0.2992, allocations: 486.1 kB / 421.2 MB, free: 6.312 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004489/0.2997, allocations: 0.4895 MB / 421.7 MB, free: 5.82 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000134/0.2998, allocations: 120 kB / 421.8 MB, free: 5.703 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002143/0.3, allocations: 139.9 kB / 421.9 MB, free: 5.566 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001758/0.3002, allocations: 275 kB / 422.2 MB, free: 5.297 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004242/0.3006, allocations: 0.6139 MB / 422.8 MB, free: 4.68 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001289/0.3019, allocations: 1.62 MB / 424.4 MB, free: 3.059 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.312e-06/0.3019, allocations: 0 / 424.4 MB, free: 3.059 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.562e-06/0.302, allocations: 3.938 kB / 424.4 MB, free: 3.055 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.415e-05/0.302, allocations: 0 / 424.4 MB, free: 3.055 MB / 334.1 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.001903/0.3039, allocations: 1.466 MB / 425.9 MB, free: 1.535 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.408e-05/0.3039, allocations: 12.03 kB / 425.9 MB, free: 1.523 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003643/0.3043, allocations: 158.2 kB / 426.1 MB, free: 1.367 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001041/0.3054, allocations: 0.7628 MB / 426.8 MB, free: 0.5586 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.181e-05/0.3054, allocations: 86.41 kB / 426.9 MB, free: 484 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001366/0.3056, allocations: 119.9 kB / 427 MB, free: 364 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001764/0.3073, allocations: 1.268 MB / 428.3 MB, free: 14.92 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.938e-05/0.3074, allocations: 7.938 kB / 428.3 MB, free: 14.91 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.762e-05/0.3075, allocations: 56 kB / 428.4 MB, free: 14.86 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.651e-05/0.3075, allocations: 31.98 kB / 428.4 MB, free: 14.82 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001199/0.3087, allocations: 0.689 MB / 429.1 MB, free: 14.14 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005345/0.3141, allocations: 6.773 MB / 435.9 MB, free: 7.027 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006644/0.3148, allocations: 269.5 kB / 436.1 MB, free: 6.746 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003517/0.3151, allocations: 189.8 kB / 436.3 MB, free: 6.555 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001217/0.3153, allocations: 85.11 kB / 436.4 MB, free: 6.453 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.429e-05/0.3153, allocations: 38.56 kB / 436.4 MB, free: 6.406 MB / 350.1 MB Notification: Performance of pre-optimization done (n=27): time 2.435e-06/0.3153, allocations: 0 / 436.4 MB, free: 6.406 MB / 350.1 MB Notification: Performance of matching and sorting (n=29): time 0.002307/0.3176, allocations: 1.402 MB / 437.8 MB, free: 4.895 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.124e-05/0.3177, allocations: 81.11 kB / 437.9 MB, free: 4.797 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006656/0.3183, allocations: 0.6609 MB / 438.6 MB, free: 4.129 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.497e-05/0.3184, allocations: 29.7 kB / 438.6 MB, free: 4.094 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003898/0.3188, allocations: 0.6875 MB / 439.3 MB, free: 3.395 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.742e-05/0.3189, allocations: 114.5 kB / 439.4 MB, free: 3.281 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001579/0.319, allocations: 142.4 kB / 439.5 MB, free: 3.133 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001427/0.3192, allocations: 390.8 kB / 439.9 MB, free: 2.742 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002627/0.3194, allocations: 145.9 kB / 440.1 MB, free: 2.602 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005201/0.32, allocations: 0.5507 MB / 440.6 MB, free: 1.848 MB / 350.1 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.001089/0.3211, allocations: 0.9463 MB / 441.6 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.017e-06/0.3211, allocations: 4 kB / 441.6 MB, free: 0.6602 MB / 350.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001189/0.3223, allocations: 0.8092 MB / 442.4 MB, free: 15.84 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.033e-05/0.3223, allocations: 12 kB / 442.4 MB, free: 15.83 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.663e-05/0.3223, allocations: 20.06 kB / 442.4 MB, free: 15.81 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002302/0.3226, allocations: 81.69 kB / 442.5 MB, free: 15.72 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005153/0.3231, allocations: 183.7 kB / 442.7 MB, free: 15.54 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002445/0.3256, allocations: 3.32 MB / 446 MB, free: 11.95 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003748/0.3259, allocations: 35.98 kB / 446 MB, free: 11.91 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.359e-05/0.326, allocations: 44 kB / 446.1 MB, free: 11.87 MB / 366.1 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.0004109/0.3264, allocations: 277.6 kB / 446.3 MB, free: 11.59 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001051/0.3265, allocations: 71.06 kB / 446.4 MB, free: 11.52 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001086/0.3267, allocations: 70.56 kB / 446.5 MB, free: 11.45 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.1e-06/0.3267, allocations: 7.984 kB / 446.5 MB, free: 11.44 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.552e-06/0.3267, allocations: 0 / 446.5 MB, free: 11.44 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.935e-05/0.3267, allocations: 3.984 kB / 446.5 MB, free: 11.43 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001733/0.3284, allocations: 1.255 MB / 447.7 MB, free: 10.11 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.468e-06/0.3285, allocations: 3.938 kB / 447.8 MB, free: 10.1 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003165/0.3288, allocations: 67.91 kB / 447.8 MB, free: 10.04 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001509/0.3289, allocations: 57.77 kB / 447.9 MB, free: 9.973 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.007e-05/0.329, allocations: 8 kB / 447.9 MB, free: 9.965 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001985/0.331, allocations: 3.058 MB / 450.9 MB, free: 6.629 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/0.331, allocations: 3.938 kB / 450.9 MB, free: 6.625 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008553/0.3318, allocations: 0.6349 MB / 451.6 MB, free: 5.957 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001046/0.332, allocations: 140.2 kB / 451.7 MB, free: 5.801 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.85e-05/0.332, allocations: 12 kB / 451.7 MB, free: 5.789 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000255/0.3323, allocations: 15.98 kB / 451.7 MB, free: 5.773 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.918e-05/0.3324, allocations: 31.91 kB / 451.8 MB, free: 5.742 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.688e-05/0.3324, allocations: 7.984 kB / 451.8 MB, free: 5.734 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004883/0.3329, allocations: 439 kB / 452.2 MB, free: 5.309 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3329, allocations: 0 / 452.2 MB, free: 5.309 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008756/0.3338, allocations: 156 kB / 452.4 MB, free: 5.156 MB / 366.1 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.0001466/0.3339, allocations: 118.5 kB / 452.5 MB, free: 5.035 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001014/0.3349, allocations: 0.6472 MB / 453.1 MB, free: 4.363 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.335, allocations: 1.625 kB / 453.1 MB, free: 4.363 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004434/0.3354, allocations: 365.4 kB / 453.5 MB, free: 3.98 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005377/0.336, allocations: 71.3 kB / 453.6 MB, free: 3.914 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002862/0.3388, allocations: 1.859 MB / 455.4 MB, free: 2.004 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000603/0.3394, allocations: 1.034 MB / 456.4 MB, free: 0.9414 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001381/0.3396, allocations: 63.42 kB / 456.5 MB, free: 0.8789 MB / 366.1 MB Notification: Performance of SimCode: time 3.31e-07/0.3396, allocations: 0 / 456.5 MB, free: 0.8789 MB / 366.1 MB Notification: Performance of Templates: time 0.02186/0.3615, allocations: 19.71 MB / 476.2 MB, free: 13.16 MB / 398.1 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches