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.001612/0.001612, allocations: 109.8 kB / 18.3 MB, free: 4.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001658/0.001658, allocations: 207.9 kB / 19.25 MB, free: 3.898 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.433/1.433, allocations: 227.4 MB / 247.5 MB, free: 10.56 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001798/0.001798, allocations: 63.05 kB / 307.6 MB, free: 0.6133 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0974/0.09922, allocations: 50.54 MB / 358.2 MB, free: 14.07 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.GenerationOfFMUs): time 0.008103/0.1074, allocations: 6.012 MB / 364.2 MB, free: 8.031 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003678/0.1111, allocations: 1.741 MB / 365.9 MB, free: 6.285 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006742/0.1118, allocations: 31.88 kB / 366 MB, free: 6.254 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006102/0.1124, allocations: 245.6 kB / 366.2 MB, free: 6.012 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006988/0.1132, allocations: 229.7 kB / 366.4 MB, free: 5.785 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00116/0.1143, allocations: 0.5149 MB / 366.9 MB, free: 5.27 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001681/0.116, allocations: 1.383 MB / 368.3 MB, free: 3.879 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008897/0.1169, allocations: 0.6208 MB / 369 MB, free: 3.238 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006277/0.1176, allocations: 478.1 kB / 369.4 MB, free: 2.77 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005366/0.1181, allocations: 0.4973 MB / 369.9 MB, free: 2.27 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001629/0.1183, allocations: 120 kB / 370 MB, free: 2.152 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002743/0.1186, allocations: 143.9 kB / 370.2 MB, free: 2.012 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002184/0.1188, allocations: 267 kB / 370.4 MB, free: 1.75 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000558/0.1194, allocations: 0.61 MB / 371 MB, free: 1.137 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1656/0.285, allocations: 1.57 MB / 372.6 MB, free: 12.8 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.871e-06/0.285, allocations: 0.6875 kB / 372.6 MB, free: 12.8 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.285, allocations: 0 / 372.6 MB, free: 12.8 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.494e-05/0.2851, allocations: 0.5312 kB / 372.6 MB, free: 12.8 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.002311/0.2874, allocations: 1.461 MB / 374.1 MB, free: 12.07 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.619e-05/0.2875, allocations: 11.92 kB / 374.1 MB, free: 12.07 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004274/0.2879, allocations: 160 kB / 374.2 MB, free: 12 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001064/0.289, allocations: 0.72 MB / 375 MB, free: 11.69 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.117e-05/0.2891, allocations: 90.94 kB / 375.1 MB, free: 11.69 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001724/0.2893, allocations: 121.9 kB / 375.2 MB, free: 11.68 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002008/0.2913, allocations: 1.269 MB / 376.4 MB, free: 11.23 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.747e-05/0.2913, allocations: 9.047 kB / 376.4 MB, free: 11.23 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.32e-05/0.2914, allocations: 50.25 kB / 376.5 MB, free: 11.23 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.913e-05/0.2915, allocations: 36.31 kB / 376.5 MB, free: 11.23 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001204/0.2927, allocations: 0.6891 MB / 377.2 MB, free: 11.21 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005085/0.2978, allocations: 6.82 MB / 384 MB, free: 6.246 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007108/0.2985, allocations: 265.1 kB / 384.3 MB, free: 6.125 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003503/0.2989, allocations: 187.5 kB / 384.5 MB, free: 6.051 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001959/0.2991, allocations: 83.89 kB / 384.6 MB, free: 5.957 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.3e-05/0.2992, allocations: 41.81 kB / 384.6 MB, free: 5.914 MB / 302.1 MB Notification: Performance of pre-optimization done (n=27): time 2.584e-06/0.2992, allocations: 4 kB / 384.6 MB, free: 5.91 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.002387/0.3016, allocations: 1.389 MB / 386 MB, free: 4.891 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.274e-05/0.3016, allocations: 85.59 kB / 386.1 MB, free: 4.793 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007992/0.3024, allocations: 0.666 MB / 386.7 MB, free: 4.496 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.296e-05/0.3024, allocations: 29.7 kB / 386.8 MB, free: 4.461 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003296/0.3028, allocations: 0.6863 MB / 387.5 MB, free: 3.922 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.515e-05/0.3029, allocations: 116.1 kB / 387.6 MB, free: 3.836 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001681/0.303, allocations: 143.9 kB / 387.7 MB, free: 3.754 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000105/0.3031, allocations: 383.8 kB / 388.1 MB, free: 3.41 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002566/0.3034, allocations: 157.1 kB / 388.2 MB, free: 3.359 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003932/0.3038, allocations: 0.5493 MB / 388.8 MB, free: 2.758 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.0008923/0.3047, allocations: 0.9546 MB / 389.8 MB, free: 1.879 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.725e-06/0.3047, allocations: 4.438 kB / 389.8 MB, free: 1.879 MB / 302.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001325/0.3061, allocations: 0.785 MB / 390.5 MB, free: 1.613 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.425e-05/0.3061, allocations: 19.28 kB / 390.6 MB, free: 1.609 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.752e-05/0.3061, allocations: 15.19 kB / 390.6 MB, free: 1.609 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002615/0.3064, allocations: 85.55 kB / 390.7 MB, free: 1.578 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005254/0.3069, allocations: 182.1 kB / 390.8 MB, free: 1.57 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002451/0.3094, allocations: 3.328 MB / 394.2 MB, free: 14.35 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005818/0.31, allocations: 35.84 kB / 394.2 MB, free: 14.33 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.002e-05/0.3101, allocations: 39.95 kB / 394.2 MB, free: 14.33 MB / 318.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.000527/0.3106, allocations: 273.4 kB / 394.5 MB, free: 14.13 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001478/0.3108, allocations: 74.33 kB / 394.6 MB, free: 14.09 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001396/0.3109, allocations: 71.2 kB / 394.6 MB, free: 14.05 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.18e-06/0.3109, allocations: 5.812 kB / 394.7 MB, free: 14.05 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.364e-05/0.3109, allocations: 10.89 kB / 394.7 MB, free: 14.04 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.302e-06/0.3109, allocations: 1.875 kB / 394.7 MB, free: 14.04 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002274/0.3132, allocations: 1.247 MB / 395.9 MB, free: 13.31 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.382e-06/0.3133, allocations: 1.188 kB / 395.9 MB, free: 13.31 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000316/0.3136, allocations: 68.75 kB / 396 MB, free: 13.31 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001742/0.3138, allocations: 58.02 kB / 396 MB, free: 13.29 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.399e-05/0.3138, allocations: 7.156 kB / 396 MB, free: 13.28 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002529/0.3163, allocations: 3.059 MB / 399.1 MB, free: 10.25 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/0.3164, allocations: 1.188 kB / 399.1 MB, free: 10.25 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001009/0.3174, allocations: 0.637 MB / 399.7 MB, free: 9.828 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002124/0.3176, allocations: 137.9 kB / 399.9 MB, free: 9.691 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.354e-05/0.3177, allocations: 7.5 kB / 399.9 MB, free: 9.688 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002849/0.318, allocations: 21.48 kB / 399.9 MB, free: 9.68 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.032e-05/0.3181, allocations: 26.78 kB / 399.9 MB, free: 9.672 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.108e-05/0.3181, allocations: 8.047 kB / 399.9 MB, free: 9.672 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.000672/0.3188, allocations: 439.3 kB / 400.4 MB, free: 9.48 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.3188, allocations: 0 / 400.4 MB, free: 9.48 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001153/0.3199, allocations: 158.3 kB / 400.5 MB, free: 9.461 MB / 318.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.0001794/0.3201, allocations: 115.5 kB / 400.6 MB, free: 9.363 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001205/0.3213, allocations: 0.6647 MB / 401.3 MB, free: 9.023 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.689e-06/0.3214, allocations: 1.5 kB / 401.3 MB, free: 9.023 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000535/0.3219, allocations: 364.8 kB / 401.7 MB, free: 8.758 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006349/0.3225, allocations: 73.33 kB / 401.7 MB, free: 8.723 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003985/0.3265, allocations: 1.884 MB / 403.6 MB, free: 7.59 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008158/0.3274, allocations: 1.034 MB / 404.6 MB, free: 6.875 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001719/0.3276, allocations: 64.48 kB / 404.7 MB, free: 6.859 MB / 318.1 MB Notification: Performance of SimCode: time 7.12e-07/0.3276, allocations: 0 / 404.7 MB, free: 6.859 MB / 318.1 MB Notification: Performance of Templates: time 0.02639/0.354, allocations: 19.59 MB / 424.3 MB, free: 6.043 MB / 334.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.1.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