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.001767/0.001767, allocations: 116.7 kB / 17.7 MB, free: 5.277 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.001954/0.001954, allocations: 190.9 kB / 18.63 MB, free: 4.344 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.442/1.442, allocations: 222.9 MB / 242.3 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0008921/0.0008922, allocations: 50.88 kB / 302.1 MB, free: 5.156 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07651/0.07741, allocations: 49.44 MB / 351.5 MB, free: 3.691 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.GenerationOfFMUs): time 0.006023/0.08347, allocations: 5.984 MB / 357.5 MB, free: 13.67 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002392/0.08589, allocations: 1.652 MB / 359.1 MB, free: 12.02 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003404/0.08625, allocations: 35.75 kB / 359.2 MB, free: 11.98 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004369/0.08672, allocations: 249.6 kB / 359.4 MB, free: 11.73 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003651/0.08709, allocations: 217.7 kB / 359.6 MB, free: 11.52 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007732/0.08787, allocations: 0.4954 MB / 360.1 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00103/0.08891, allocations: 1.399 MB / 361.5 MB, free: 9.621 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000674/0.0896, allocations: 0.6247 MB / 362.1 MB, free: 8.973 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003929/0.09, allocations: 482.1 kB / 362.6 MB, free: 8.5 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004111/0.09042, allocations: 0.4934 MB / 363.1 MB, free: 8.004 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001307/0.09055, allocations: 124 kB / 363.2 MB, free: 7.883 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001732/0.09073, allocations: 136 kB / 363.4 MB, free: 7.75 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001601/0.0909, allocations: 259.1 kB / 363.6 MB, free: 7.496 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000394/0.0913, allocations: 0.6139 MB / 364.2 MB, free: 6.879 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001073/0.09238, allocations: 1.588 MB / 365.8 MB, free: 5.285 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.09239, allocations: 4 kB / 365.8 MB, free: 5.281 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.0924, allocations: 0 / 365.8 MB, free: 5.281 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.575e-05/0.09242, allocations: 4 kB / 365.8 MB, free: 5.277 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.001743/0.09417, allocations: 1.465 MB / 367.3 MB, free: 3.762 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.037e-05/0.09421, allocations: 8.031 kB / 367.3 MB, free: 3.754 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002029/0.09442, allocations: 146.2 kB / 367.4 MB, free: 3.609 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001022/0.09545, allocations: 0.7549 MB / 368.2 MB, free: 2.812 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.166e-05/0.09552, allocations: 94.34 kB / 368.3 MB, free: 2.719 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001293/0.09565, allocations: 120 kB / 368.4 MB, free: 2.602 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001626/0.09729, allocations: 1.256 MB / 369.7 MB, free: 1.176 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.753e-05/0.09733, allocations: 7.938 kB / 369.7 MB, free: 1.168 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.72e-05/0.09741, allocations: 56 kB / 369.7 MB, free: 1.113 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.424e-05/0.09744, allocations: 32 kB / 369.8 MB, free: 1.082 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001141/0.09859, allocations: 0.6929 MB / 370.5 MB, free: 396 kB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1361/0.2347, allocations: 6.767 MB / 377.2 MB, free: 19.79 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005922/0.2353, allocations: 280 kB / 377.5 MB, free: 19.66 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003078/0.2356, allocations: 184.7 kB / 377.7 MB, free: 19.59 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.605e-05/0.2358, allocations: 83.84 kB / 377.8 MB, free: 19.5 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.713e-05/0.2358, allocations: 35.94 kB / 377.8 MB, free: 19.46 MB / 302.1 MB Notification: Performance of pre-optimization done (n=27): time 2.204e-06/0.2358, allocations: 0 / 377.8 MB, free: 19.46 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.001898/0.2377, allocations: 1.392 MB / 379.2 MB, free: 18.44 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.784e-05/0.2377, allocations: 82.52 kB / 379.3 MB, free: 18.35 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005976/0.2383, allocations: 0.6657 MB / 379.9 MB, free: 18.05 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.77e-05/0.2384, allocations: 31.08 kB / 380 MB, free: 18.02 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002841/0.2386, allocations: 0.6795 MB / 380.6 MB, free: 17.48 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.451e-05/0.2387, allocations: 122.6 kB / 380.8 MB, free: 17.39 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001464/0.2389, allocations: 140.5 kB / 380.9 MB, free: 17.31 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.158e-05/0.239, allocations: 383.6 kB / 381.3 MB, free: 16.96 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002347/0.2392, allocations: 149.5 kB / 381.4 MB, free: 16.92 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000356/0.2396, allocations: 0.5447 MB / 382 MB, free: 16.32 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.0007364/0.2403, allocations: 0.9637 MB / 382.9 MB, free: 15.38 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.261e-06/0.2403, allocations: 4.281 kB / 382.9 MB, free: 15.38 MB / 302.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001024/0.2413, allocations: 0.803 MB / 383.7 MB, free: 15.01 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.06e-05/0.2414, allocations: 10.56 kB / 383.7 MB, free: 15.01 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.539e-05/0.2414, allocations: 18.03 kB / 383.8 MB, free: 15.01 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002094/0.2416, allocations: 78.02 kB / 383.8 MB, free: 14.98 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004879/0.2421, allocations: 186.1 kB / 384 MB, free: 14.96 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001591/0.2437, allocations: 3.321 MB / 387.3 MB, free: 11.71 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000341/0.2441, allocations: 34.89 kB / 387.4 MB, free: 11.7 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.086e-05/0.2441, allocations: 43.91 kB / 387.4 MB, free: 11.7 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.000274/0.2444, allocations: 271.1 kB / 387.7 MB, free: 11.49 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.804e-05/0.2445, allocations: 78.16 kB / 387.8 MB, free: 11.45 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.751e-05/0.2446, allocations: 70.36 kB / 387.8 MB, free: 11.41 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.907e-06/0.2446, allocations: 8.281 kB / 387.8 MB, free: 11.4 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.424e-06/0.2446, allocations: 9.344 kB / 387.8 MB, free: 11.39 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.11e-06/0.2446, allocations: 2.203 kB / 387.8 MB, free: 11.39 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001472/0.2461, allocations: 1.25 MB / 389.1 MB, free: 10.66 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.895e-06/0.2461, allocations: 1.281 kB / 389.1 MB, free: 10.66 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000288/0.2464, allocations: 65.52 kB / 389.2 MB, free: 10.65 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001336/0.2465, allocations: 56.38 kB / 389.2 MB, free: 10.62 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.025e-05/0.2466, allocations: 11.8 kB / 389.2 MB, free: 10.62 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001271/0.2479, allocations: 3.043 MB / 392.3 MB, free: 7.594 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.933e-06/0.2479, allocations: 5.344 kB / 392.3 MB, free: 7.59 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006755/0.2485, allocations: 0.6267 MB / 392.9 MB, free: 7.176 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.198e-05/0.2487, allocations: 146.2 kB / 393 MB, free: 7.031 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.785e-05/0.2487, allocations: 11.95 kB / 393.1 MB, free: 7.027 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002436/0.249, allocations: 17.67 kB / 393.1 MB, free: 7.023 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.166e-05/0.249, allocations: 23.16 kB / 393.1 MB, free: 7.02 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.791e-05/0.249, allocations: 8.531 kB / 393.1 MB, free: 7.02 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004176/0.2495, allocations: 441.2 kB / 393.5 MB, free: 6.824 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2495, allocations: 4 kB / 393.5 MB, free: 6.82 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000757/0.2502, allocations: 155.2 kB / 393.7 MB, free: 6.805 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.0001114/0.2504, allocations: 105.2 kB / 393.8 MB, free: 6.711 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000875/0.2512, allocations: 0.6625 MB / 394.5 MB, free: 6.328 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.2513, allocations: 1.156 kB / 394.5 MB, free: 6.328 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003759/0.2516, allocations: 359.6 kB / 394.8 MB, free: 6.059 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004756/0.2521, allocations: 89.28 kB / 394.9 MB, free: 6.012 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002238/0.2544, allocations: 1.804 MB / 396.7 MB, free: 4.934 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004596/0.2548, allocations: 1.035 MB / 397.7 MB, free: 4.219 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000226/0.2551, allocations: 84 kB / 397.8 MB, free: 4.199 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.99e-05/0.2552, allocations: 55.83 kB / 397.9 MB, free: 4.188 MB / 302.1 MB Notification: Performance of SimCode: time 2.41e-07/0.2552, allocations: 3.5 kB / 397.9 MB, free: 4.188 MB / 302.1 MB Notification: Performance of Templates: time 0.2651/0.5203, allocations: 5.407 MB / 403.3 MB, free: 1.957 MB / 302.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 -s gbode -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