Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_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_3.2.3_Modelica.Electrical.Analog.Examples.GenerationOfFMUs") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001029/0.001029, allocations: 187 kB / 17.92 MB, free: 3.855 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.206/1.206, allocations: 205.1 MB / 223.7 MB, free: 8.477 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008359/0.0008359, allocations: 95.98 kB / 271.2 MB, free: 8.434 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008583/0.0008584, allocations: 39.94 kB / 327.2 MB, free: 328 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2142/0.2151, allocations: 46.63 MB / 373.8 MB, free: 45.66 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.GenerationOfFMUs): time 0.005801/0.2209, allocations: 5.942 MB / 379.8 MB, free: 41.08 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002795/0.2237, allocations: 1.652 MB / 381.4 MB, free: 39.71 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004219/0.2242, allocations: 29.97 kB / 381.4 MB, free: 39.7 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003649/0.2246, allocations: 184.2 kB / 381.6 MB, free: 39.54 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003325/0.2249, allocations: 172.2 kB / 381.8 MB, free: 39.39 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006479/0.2256, allocations: 451.6 kB / 382.2 MB, free: 39.02 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001014/0.2266, allocations: 1.319 MB / 383.6 MB, free: 38.24 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007398/0.2273, allocations: 0.5499 MB / 384.1 MB, free: 37.88 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004278/0.2278, allocations: 428.2 kB / 384.5 MB, free: 37.63 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003356/0.2281, allocations: 478.3 kB / 385 MB, free: 37.28 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001119/0.2282, allocations: 73.25 kB / 385.1 MB, free: 37.28 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001873/0.2284, allocations: 91.98 kB / 385.2 MB, free: 37.27 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001216/0.2286, allocations: 213.6 kB / 385.4 MB, free: 37.09 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00036/0.2289, allocations: 0.5536 MB / 385.9 MB, free: 36.69 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000919/0.2299, allocations: 1.469 MB / 387.4 MB, free: 35.52 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.039e-06/0.2299, allocations: 0 / 387.4 MB, free: 35.52 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.2299, allocations: 4 kB / 387.4 MB, free: 35.52 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.518e-05/0.2299, allocations: 1.156 kB / 387.4 MB, free: 35.52 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.001772/0.2317, allocations: 1.456 MB / 388.8 MB, free: 34.37 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.696e-05/0.2317, allocations: 12.03 kB / 388.9 MB, free: 34.36 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001417/0.2319, allocations: 138.3 kB / 389 MB, free: 34.22 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007615/0.2326, allocations: 0.7275 MB / 389.7 MB, free: 33.45 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.386e-05/0.2327, allocations: 90.41 kB / 389.8 MB, free: 33.36 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001079/0.2328, allocations: 116 kB / 389.9 MB, free: 33.25 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001363/0.2342, allocations: 1.268 MB / 391.2 MB, free: 31.8 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.969e-05/0.2342, allocations: 11.88 kB / 391.2 MB, free: 31.79 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.139e-05/0.2343, allocations: 48 kB / 391.2 MB, free: 31.75 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.888e-05/0.2343, allocations: 32 kB / 391.3 MB, free: 31.71 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009534/0.2353, allocations: 0.6891 MB / 392 MB, free: 31.02 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003875/0.2392, allocations: 6.816 MB / 398.8 MB, free: 23.87 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005394/0.2397, allocations: 273.3 kB / 399 MB, free: 23.59 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000276/0.24, allocations: 173.7 kB / 399.2 MB, free: 23.41 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000139/0.2402, allocations: 85.11 kB / 399.3 MB, free: 23.31 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.911e-05/0.2402, allocations: 46.48 kB / 399.3 MB, free: 23.25 MB / 298.7 MB Notification: Performance of pre-optimization done (n=27): time 2.775e-06/0.2402, allocations: 0 / 399.3 MB, free: 23.25 MB / 298.7 MB Notification: Performance of matching and sorting (n=29): time 0.001882/0.2421, allocations: 1.401 MB / 400.7 MB, free: 21.75 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.803e-05/0.2421, allocations: 85.09 kB / 400.8 MB, free: 21.64 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005139/0.2426, allocations: 0.653 MB / 401.5 MB, free: 20.98 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.69e-05/0.2427, allocations: 33.7 kB / 401.5 MB, free: 20.94 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002219/0.2429, allocations: 0.6836 MB / 402.2 MB, free: 20.25 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.208e-05/0.243, allocations: 110.5 kB / 402.3 MB, free: 20.14 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001292/0.2431, allocations: 158.3 kB / 402.5 MB, free: 19.98 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.957e-05/0.2432, allocations: 382.8 kB / 402.8 MB, free: 19.59 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002161/0.2434, allocations: 141.9 kB / 403 MB, free: 19.45 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000334/0.2437, allocations: 0.5546 MB / 403.5 MB, free: 18.7 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.0007641/0.2445, allocations: 0.9448 MB / 404.5 MB, free: 17.52 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.109e-06/0.2445, allocations: 8 kB / 404.5 MB, free: 17.52 MB / 298.7 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.0009496/0.2455, allocations: 0.7954 MB / 405.3 MB, free: 16.71 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.814e-05/0.2455, allocations: 16 kB / 405.3 MB, free: 16.69 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.201e-05/0.2455, allocations: 12 kB / 405.3 MB, free: 16.68 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002024/0.2457, allocations: 81.69 kB / 405.4 MB, free: 16.59 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004356/0.2462, allocations: 183.7 kB / 405.6 MB, free: 16.41 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001522/0.2477, allocations: 2.989 MB / 408.6 MB, free: 13.16 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003317/0.2481, allocations: 32 kB / 408.6 MB, free: 13.13 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.424e-05/0.2481, allocations: 40 kB / 408.6 MB, free: 13.09 MB / 298.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.0002874/0.2484, allocations: 277.6 kB / 408.9 MB, free: 12.81 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.099e-05/0.2485, allocations: 71.16 kB / 409 MB, free: 12.74 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.078e-05/0.2486, allocations: 78.34 kB / 409 MB, free: 12.66 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.517e-06/0.2486, allocations: 4 kB / 409 MB, free: 12.66 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.173e-06/0.2486, allocations: 0 / 409 MB, free: 12.66 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.787e-06/0.2486, allocations: 0 / 409 MB, free: 12.66 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001422/0.25, allocations: 1.243 MB / 410.3 MB, free: 11.34 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.237e-06/0.2501, allocations: 4 kB / 410.3 MB, free: 11.34 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000265/0.2503, allocations: 67.89 kB / 410.4 MB, free: 11.27 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001287/0.2505, allocations: 57.72 kB / 410.4 MB, free: 11.21 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.859e-05/0.2505, allocations: 8 kB / 410.4 MB, free: 11.2 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001199/0.2517, allocations: 2.787 MB / 413.2 MB, free: 8.145 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/0.2517, allocations: 4.031 kB / 413.2 MB, free: 8.141 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003898/0.2556, allocations: 5.475 MB / 418.7 MB, free: 2.23 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.507e-05/0.2557, allocations: 144.1 kB / 418.8 MB, free: 2.07 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.701e-05/0.2558, allocations: 16.19 kB / 418.8 MB, free: 2.055 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002253/0.256, allocations: 8 kB / 418.9 MB, free: 2.047 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.912e-05/0.2561, allocations: 35.83 kB / 418.9 MB, free: 2.012 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.556e-05/0.2561, allocations: 11.94 kB / 418.9 MB, free: 2 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003573/0.2565, allocations: 439.1 kB / 419.3 MB, free: 1.578 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2565, allocations: 0 / 419.3 MB, free: 1.578 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0009916/0.2575, allocations: 204 kB / 419.5 MB, free: 1.379 MB / 298.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.0001264/0.2576, allocations: 117.5 kB / 419.6 MB, free: 1.254 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0009239/0.2585, allocations: 0.6485 MB / 420.3 MB, free: 0.5859 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.2586, allocations: 0 / 420.3 MB, free: 0.5859 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003535/0.2589, allocations: 365.1 kB / 420.6 MB, free: 208 kB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004953/0.2594, allocations: 79.92 kB / 420.7 MB, free: 128 kB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003704/0.2631, allocations: 2.787 MB / 423.5 MB, free: 13.26 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007221/0.2639, allocations: 1.042 MB / 424.6 MB, free: 12.19 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0002948/0.2642, allocations: 86.02 kB / 424.6 MB, free: 12.11 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001093/0.2643, allocations: 55.42 kB / 424.7 MB, free: 12.05 MB / 314.7 MB Notification: Performance of SimCode: time 2.31e-07/0.2643, allocations: 0 / 424.7 MB, free: 12.05 MB / 314.7 MB Notification: Performance of Templates: time 0.01223/0.2765, allocations: 5.936 MB / 430.6 MB, free: 6.133 MB / 314.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.GenerationOfFMUs -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches