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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001114/0.001114, allocations: 110.1 kB / 17.28 MB, free: 6.219 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001107/0.001107, allocations: 197.3 kB / 18.21 MB, free: 5.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.284/1.284, allocations: 222.9 MB / 241.9 MB, free: 15.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001055/0.001055, allocations: 47.44 kB / 300.8 MB, free: 6.223 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08541/0.08648, allocations: 49.45 MB / 350.2 MB, free: 4.77 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.GenerationOfFMUs): time 0.006846/0.09336, allocations: 5.972 MB / 356.2 MB, free: 14.76 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00312/0.09651, allocations: 1.617 MB / 357.8 MB, free: 13.14 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001103/0.09764, allocations: 31.88 kB / 357.9 MB, free: 13.11 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009081/0.09864, allocations: 190.5 kB / 358 MB, free: 12.92 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009805/0.09964, allocations: 166.5 kB / 358.2 MB, free: 12.76 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001269/0.1009, allocations: 455.6 kB / 358.6 MB, free: 12.31 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001805/0.1027, allocations: 1.387 MB / 360 MB, free: 10.92 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001018/0.1038, allocations: 0.613 MB / 360.6 MB, free: 10.29 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000719/0.1045, allocations: 482.1 kB / 361.1 MB, free: 9.812 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007008/0.1052, allocations: 0.4972 MB / 361.6 MB, free: 9.312 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002495/0.1055, allocations: 124 kB / 361.7 MB, free: 9.191 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003198/0.1058, allocations: 140 kB / 361.9 MB, free: 9.055 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002641/0.1061, allocations: 255.1 kB / 362.1 MB, free: 8.805 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006151/0.1067, allocations: 0.61 MB / 362.7 MB, free: 8.191 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00129/0.108, allocations: 1.271 MB / 364 MB, free: 6.918 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.461e-06/0.108, allocations: 0 / 364 MB, free: 6.918 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.108, allocations: 4 kB / 364 MB, free: 6.914 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.978e-05/0.1081, allocations: 0 / 364 MB, free: 6.914 MB / 302.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.00256/0.1107, allocations: 1.462 MB / 365.5 MB, free: 5.398 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.196e-05/0.1107, allocations: 12.03 kB / 365.5 MB, free: 5.387 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002171/0.111, allocations: 142.2 kB / 365.6 MB, free: 5.246 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001114/0.1121, allocations: 0.7237 MB / 366.3 MB, free: 4.477 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.459e-05/0.1122, allocations: 90.41 kB / 366.4 MB, free: 4.387 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000132/0.1123, allocations: 120 kB / 366.5 MB, free: 4.27 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001998/0.1143, allocations: 1.26 MB / 367.8 MB, free: 2.84 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.814e-05/0.1144, allocations: 11.88 kB / 367.8 MB, free: 2.828 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.199e-05/0.1145, allocations: 52 kB / 367.9 MB, free: 2.777 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.724e-05/0.1145, allocations: 32 kB / 367.9 MB, free: 2.746 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001208/0.1157, allocations: 0.6929 MB / 368.6 MB, free: 2.055 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1703/0.2861, allocations: 6.813 MB / 375.4 MB, free: 20.07 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008984/0.287, allocations: 272.3 kB / 375.7 MB, free: 20.02 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004559/0.2875, allocations: 179 kB / 375.8 MB, free: 20.01 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002133/0.2877, allocations: 83.66 kB / 375.9 MB, free: 19.91 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.039e-05/0.2878, allocations: 41.06 kB / 376 MB, free: 19.88 MB / 302.1 MB Notification: Performance of pre-optimization done (n=27): time 3.356e-06/0.2878, allocations: 0 / 376 MB, free: 19.88 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.002551/0.2903, allocations: 1.392 MB / 377.4 MB, free: 19.04 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.775e-05/0.2904, allocations: 84.36 kB / 377.4 MB, free: 18.95 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000827/0.2912, allocations: 0.6588 MB / 378.1 MB, free: 18.65 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.178e-05/0.2912, allocations: 31.77 kB / 378.1 MB, free: 18.62 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003762/0.2916, allocations: 0.6798 MB / 378.8 MB, free: 18.08 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.219e-05/0.2917, allocations: 115.6 kB / 378.9 MB, free: 18 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001637/0.2919, allocations: 147.2 kB / 379.1 MB, free: 17.92 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001216/0.292, allocations: 396.3 kB / 379.5 MB, free: 17.57 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002648/0.2923, allocations: 143.2 kB / 379.6 MB, free: 17.52 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004529/0.2927, allocations: 0.55 MB / 380.1 MB, free: 16.91 MB / 302.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.001275/0.294, allocations: 0.968 MB / 381.1 MB, free: 15.97 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.009e-05/0.294, allocations: 5.375 kB / 381.1 MB, free: 15.97 MB / 302.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001399/0.2954, allocations: 0.7904 MB / 381.9 MB, free: 15.62 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.301e-05/0.2955, allocations: 11.95 kB / 381.9 MB, free: 15.62 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.279e-05/0.2955, allocations: 14.53 kB / 381.9 MB, free: 15.62 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000263/0.2958, allocations: 85.67 kB / 382 MB, free: 15.58 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005247/0.2963, allocations: 182.3 kB / 382.2 MB, free: 15.56 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001939/0.2983, allocations: 3.327 MB / 385.5 MB, free: 12.32 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003959/0.2987, allocations: 32.52 kB / 385.6 MB, free: 12.3 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.306e-05/0.2987, allocations: 40.25 kB / 385.6 MB, free: 12.3 MB / 302.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.0003974/0.2991, allocations: 275.4 kB / 385.9 MB, free: 12.09 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001116/0.2993, allocations: 74.44 kB / 385.9 MB, free: 12.05 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001076/0.2994, allocations: 76.77 kB / 386 MB, free: 12 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.759e-06/0.2994, allocations: 3.688 kB / 386 MB, free: 12 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.377e-05/0.2994, allocations: 2.25 kB / 386 MB, free: 12 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.663e-06/0.2994, allocations: 3.094 kB / 386 MB, free: 12 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001894/0.3013, allocations: 1.242 MB / 387.3 MB, free: 11.27 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.128e-06/0.3013, allocations: 2.312 kB / 387.3 MB, free: 11.27 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000313/0.3017, allocations: 72.5 kB / 387.3 MB, free: 11.26 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001596/0.3018, allocations: 57.12 kB / 387.4 MB, free: 11.23 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.477e-05/0.3019, allocations: 9.938 kB / 387.4 MB, free: 11.23 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001721/0.3036, allocations: 3.048 MB / 390.4 MB, free: 8.191 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.539e-06/0.3036, allocations: 1.938 kB / 390.5 MB, free: 8.191 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009836/0.3046, allocations: 0.6297 MB / 391.1 MB, free: 7.773 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001383/0.3047, allocations: 148.1 kB / 391.2 MB, free: 7.629 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.59e-05/0.3048, allocations: 7.469 kB / 391.2 MB, free: 7.625 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002671/0.3051, allocations: 16.84 kB / 391.2 MB, free: 7.621 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.495e-05/0.3052, allocations: 31.94 kB / 391.3 MB, free: 7.613 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.326e-05/0.3052, allocations: 11.78 kB / 391.3 MB, free: 7.609 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0006845/0.3059, allocations: 434 kB / 391.7 MB, free: 7.422 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3059, allocations: 0 / 391.7 MB, free: 7.422 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001244/0.3072, allocations: 159.2 kB / 391.9 MB, free: 7.402 MB / 302.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.0001719/0.3073, allocations: 111.2 kB / 392 MB, free: 7.305 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001224/0.3086, allocations: 0.6626 MB / 392.6 MB, free: 6.922 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.937e-06/0.3086, allocations: 2.562 kB / 392.6 MB, free: 6.922 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004483/0.309, allocations: 356.8 kB / 393 MB, free: 6.66 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005812/0.3096, allocations: 88.06 kB / 393.1 MB, free: 6.609 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003106/0.3127, allocations: 2.371 MB / 395.5 MB, free: 4.973 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007103/0.3135, allocations: 1.033 MB / 396.5 MB, free: 4.262 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001632/0.3136, allocations: 65.67 kB / 396.5 MB, free: 4.246 MB / 302.1 MB Notification: Performance of SimCode: time 9.12e-07/0.3136, allocations: 0 / 396.5 MB, free: 4.246 MB / 302.1 MB Notification: Performance of Templates: time 0.02387/0.3375, allocations: 19.51 MB / 416.1 MB, free: 5.863 MB / 318.1 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/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_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches