Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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.1.0-beta.om_Modelica.Electrical.Analog.Examples.GenerationOfFMUs") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001415/0.001415, allocations: 117.6 kB / 18.46 MB, free: 4.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00142/0.00142, allocations: 216.7 kB / 19.41 MB, free: 3.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.397/1.397, allocations: 227.7 MB / 247.9 MB, free: 10.2 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001848/0.001848, allocations: 63.91 kB / 359.7 MB, free: 12.76 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2236/0.2254, allocations: 50.55 MB / 410.2 MB, free: 1.609 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.GenerationOfFMUs): time 0.007314/0.2327, allocations: 6.027 MB / 416.3 MB, free: 11.56 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002692/0.2354, allocations: 1.73 MB / 418 MB, free: 9.824 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003194/0.2357, allocations: 35.81 kB / 418 MB, free: 9.789 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004699/0.2362, allocations: 253.6 kB / 418.3 MB, free: 9.539 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004039/0.2366, allocations: 225.7 kB / 418.5 MB, free: 9.316 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000886/0.2375, allocations: 0.5188 MB / 419 MB, free: 8.797 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001399/0.2389, allocations: 1.383 MB / 420.4 MB, free: 7.402 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006655/0.2396, allocations: 451.8 kB / 420.8 MB, free: 6.938 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005259/0.2401, allocations: 482.1 kB / 421.3 MB, free: 6.465 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004995/0.2406, allocations: 0.4895 MB / 421.8 MB, free: 5.973 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001487/0.2407, allocations: 124 kB / 421.9 MB, free: 5.852 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000218/0.241, allocations: 144 kB / 422.1 MB, free: 5.711 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002166/0.2412, allocations: 271 kB / 422.3 MB, free: 5.445 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005412/0.2417, allocations: 0.6138 MB / 422.9 MB, free: 4.828 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001572/0.2433, allocations: 1.622 MB / 424.6 MB, free: 3.199 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.49e-06/0.2433, allocations: 4 kB / 424.6 MB, free: 3.195 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.2433, allocations: 0 / 424.6 MB, free: 3.195 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.589e-05/0.2433, allocations: 3.938 kB / 424.6 MB, free: 3.191 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.002075/0.2454, allocations: 1.496 MB / 426.1 MB, free: 1.641 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.118e-05/0.2454, allocations: 11.97 kB / 426.1 MB, free: 1.629 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003771/0.2458, allocations: 167 kB / 426.2 MB, free: 1.465 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001182/0.247, allocations: 0.7672 MB / 427 MB, free: 0.6523 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.817e-05/0.247, allocations: 90.41 kB / 427.1 MB, free: 0.5625 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001614/0.2472, allocations: 124 kB / 427.2 MB, free: 452 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001882/0.2491, allocations: 1.272 MB / 428.5 MB, free: 15 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.086e-05/0.2491, allocations: 7.938 kB / 428.5 MB, free: 14.99 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.491e-05/0.2492, allocations: 48 kB / 428.5 MB, free: 14.95 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.011e-05/0.2492, allocations: 32 kB / 428.6 MB, free: 14.91 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001311/0.2506, allocations: 0.689 MB / 429.3 MB, free: 14.23 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006152/0.2567, allocations: 6.798 MB / 436.1 MB, free: 7.094 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006446/0.2574, allocations: 253.3 kB / 436.3 MB, free: 6.828 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003526/0.2577, allocations: 157.6 kB / 436.5 MB, free: 6.668 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001271/0.2578, allocations: 97.03 kB / 436.5 MB, free: 6.555 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.503e-05/0.2579, allocations: 34.56 kB / 436.6 MB, free: 6.512 MB / 350.1 MB Notification: Performance of pre-optimization done (n=27): time 1.523e-06/0.2579, allocations: 0 / 436.6 MB, free: 6.512 MB / 350.1 MB Notification: Performance of matching and sorting (n=29): time 0.002366/0.2602, allocations: 1.427 MB / 438 MB, free: 4.98 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.617e-05/0.2603, allocations: 81.11 kB / 438.1 MB, free: 4.883 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007619/0.2611, allocations: 0.6687 MB / 438.8 MB, free: 4.207 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.86e-05/0.2611, allocations: 25.7 kB / 438.8 MB, free: 4.176 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004932/0.2616, allocations: 0.7055 MB / 439.5 MB, free: 3.461 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.696e-05/0.2617, allocations: 123 kB / 439.6 MB, free: 3.34 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001765/0.2618, allocations: 142.6 kB / 439.7 MB, free: 3.191 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001968/0.262, allocations: 386.8 kB / 440.1 MB, free: 2.805 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002811/0.2623, allocations: 145.9 kB / 440.3 MB, free: 2.664 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006086/0.2629, allocations: 0.5506 MB / 440.8 MB, free: 1.91 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.00121/0.2641, allocations: 0.9573 MB / 441.8 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.201e-06/0.2642, allocations: 4 kB / 441.8 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.00129/0.2654, allocations: 0.7987 MB / 442.6 MB, free: 15.91 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.144e-05/0.2655, allocations: 15.94 kB / 442.6 MB, free: 15.89 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.159e-05/0.2655, allocations: 24.11 kB / 442.6 MB, free: 15.87 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002395/0.2657, allocations: 81.69 kB / 442.7 MB, free: 15.78 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000543/0.2663, allocations: 175.7 kB / 442.9 MB, free: 15.61 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002854/0.2691, allocations: 3.325 MB / 446.2 MB, free: 12.01 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003476/0.2695, allocations: 28 kB / 446.2 MB, free: 11.98 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.188e-05/0.2695, allocations: 47.98 kB / 446.3 MB, free: 11.93 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.0003552/0.2699, allocations: 270.4 kB / 446.5 MB, free: 11.66 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001341/0.27, allocations: 79.48 kB / 446.6 MB, free: 11.58 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001204/0.2701, allocations: 78.41 kB / 446.7 MB, free: 11.5 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.164e-06/0.2701, allocations: 0 / 446.7 MB, free: 11.5 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.544e-06/0.2701, allocations: 4 kB / 446.7 MB, free: 11.5 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.302e-06/0.2701, allocations: 3.984 kB / 446.7 MB, free: 11.5 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001823/0.272, allocations: 1.251 MB / 447.9 MB, free: 10.17 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.272, allocations: 0 / 447.9 MB, free: 10.17 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003157/0.2723, allocations: 63.89 kB / 448 MB, free: 10.11 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001511/0.2724, allocations: 69.7 kB / 448.1 MB, free: 10.04 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.09e-05/0.2725, allocations: 8 kB / 448.1 MB, free: 10.03 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002473/0.2749, allocations: 3.057 MB / 451.1 MB, free: 6.691 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.717e-06/0.2749, allocations: 7.969 kB / 451.1 MB, free: 6.684 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009012/0.2758, allocations: 0.6346 MB / 451.8 MB, free: 6.016 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001401/0.276, allocations: 140.6 kB / 451.9 MB, free: 5.859 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.688e-05/0.276, allocations: 8.062 kB / 451.9 MB, free: 5.852 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002482/0.2763, allocations: 15.98 kB / 451.9 MB, free: 5.836 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.566e-05/0.2763, allocations: 31.91 kB / 452 MB, free: 5.805 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.829e-05/0.2764, allocations: 12 kB / 452 MB, free: 5.793 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005109/0.2769, allocations: 435 kB / 452.4 MB, free: 5.371 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2769, allocations: 0 / 452.4 MB, free: 5.371 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007968/0.2777, allocations: 160 kB / 452.6 MB, free: 5.215 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.0001559/0.2778, allocations: 111.2 kB / 452.7 MB, free: 5.098 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001057/0.2789, allocations: 0.6293 MB / 453.3 MB, free: 4.445 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.2789, allocations: 0 / 453.3 MB, free: 4.445 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004904/0.2794, allocations: 357.3 kB / 453.7 MB, free: 4.07 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005132/0.2799, allocations: 83.86 kB / 453.7 MB, free: 3.992 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002877/0.2828, allocations: 1.847 MB / 455.6 MB, free: 2.098 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007139/0.2835, allocations: 1.038 MB / 456.6 MB, free: 1.031 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002309/0.2837, allocations: 90.02 kB / 456.7 MB, free: 0.9414 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001078/0.2838, allocations: 55.42 kB / 456.8 MB, free: 0.8867 MB / 366.1 MB Notification: Performance of SimCode: time 4.61e-07/0.2838, allocations: 0 / 456.8 MB, free: 0.8867 MB / 366.1 MB Notification: Performance of Templates: time 0.01269/0.2965, allocations: 5.62 MB / 462.4 MB, free: 11.3 MB / 382.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.GenerationOfFMUs -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches