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.0008046/0.0008046, allocations: 98.53 kB / 18.01 MB, free: 5.73 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009349/0.0009348, allocations: 206.5 kB / 18.94 MB, free: 4.844 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.359/1.359, allocations: 227.7 MB / 247.5 MB, free: 9.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000233/0.0002331, allocations: 4 kB / 308.4 MB, free: 0.582 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08768/0.08793, allocations: 51.53 MB / 359.9 MB, free: 13.06 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.GenerationOfFMUs): time 0.005681/0.09365, allocations: 5.511 MB / 365.4 MB, free: 7.52 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002967/0.09664, allocations: 1.695 MB / 367.1 MB, free: 5.82 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006403/0.09731, allocations: 27.88 kB / 367.1 MB, free: 5.793 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004221/0.09774, allocations: 186.5 kB / 367.3 MB, free: 5.609 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004781/0.09823, allocations: 166.5 kB / 367.5 MB, free: 5.445 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009108/0.09915, allocations: 463.5 kB / 367.9 MB, free: 4.992 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001221/0.1004, allocations: 1.301 MB / 369.2 MB, free: 3.684 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007504/0.1011, allocations: 0.5413 MB / 369.8 MB, free: 3.125 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005007/0.1017, allocations: 378.1 kB / 370.2 MB, free: 2.754 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003934/0.1021, allocations: 417.3 kB / 370.6 MB, free: 2.344 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.442e-05/0.1021, allocations: 48 kB / 370.6 MB, free: 2.297 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001814/0.1023, allocations: 67.94 kB / 370.7 MB, free: 2.23 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001268/0.1025, allocations: 179.1 kB / 370.8 MB, free: 2.055 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004155/0.1029, allocations: 0.5413 MB / 371.4 MB, free: 1.504 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009703/0.1039, allocations: 1.169 MB / 372.6 MB, free: 340 kB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.1039, allocations: 0 / 372.6 MB, free: 340 kB / 302.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.1039, allocations: 0 / 372.6 MB, free: 340 kB / 302.1 MB Notification: Performance of Transformations before backend: time 2.225e-05/0.1039, allocations: 0 / 372.6 MB, free: 340 kB / 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.1605/0.2645, allocations: 1.233 MB / 373.8 MB, free: 18.61 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.954e-05/0.2645, allocations: 9.031 kB / 373.8 MB, free: 18.61 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003869/0.2649, allocations: 165.3 kB / 374 MB, free: 18.54 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009334/0.2658, allocations: 0.7244 MB / 374.7 MB, free: 18.22 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.666e-05/0.2659, allocations: 89.91 kB / 374.8 MB, free: 18.22 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000147/0.2661, allocations: 122 kB / 374.9 MB, free: 18.21 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002108/0.2682, allocations: 1.265 MB / 376.2 MB, free: 17.74 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.889e-05/0.2682, allocations: 7.375 kB / 376.2 MB, free: 17.74 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001071/0.2684, allocations: 57.09 kB / 376.2 MB, free: 17.73 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.369e-05/0.2684, allocations: 32.69 kB / 376.3 MB, free: 17.73 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001362/0.2698, allocations: 0.6994 MB / 377 MB, free: 17.5 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004706/0.2745, allocations: 6.834 MB / 383.8 MB, free: 11.84 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006258/0.2751, allocations: 275.6 kB / 384.1 MB, free: 11.7 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000347/0.2755, allocations: 177.9 kB / 384.2 MB, free: 11.64 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001121/0.2756, allocations: 84.55 kB / 384.3 MB, free: 11.54 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.718e-05/0.2756, allocations: 44.06 kB / 384.4 MB, free: 11.5 MB / 302.1 MB Notification: Performance of pre-optimization done (n=27): time 2.765e-06/0.2757, allocations: 1.875 kB / 384.4 MB, free: 11.5 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.002218/0.2779, allocations: 1.411 MB / 385.8 MB, free: 10.47 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.621e-05/0.2779, allocations: 88.7 kB / 385.9 MB, free: 10.37 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007004/0.2786, allocations: 0.6632 MB / 386.5 MB, free: 10.07 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.041e-05/0.2786, allocations: 29.7 kB / 386.5 MB, free: 10.04 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003088/0.279, allocations: 0.6831 MB / 387.2 MB, free: 9.5 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.1e-05/0.279, allocations: 117.1 kB / 387.3 MB, free: 9.414 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.323e-05/0.2791, allocations: 65.55 kB / 387.4 MB, free: 9.375 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.659e-05/0.2792, allocations: 389 kB / 387.8 MB, free: 9.027 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000276/0.2795, allocations: 153.7 kB / 387.9 MB, free: 8.973 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004185/0.2799, allocations: 0.5484 MB / 388.5 MB, free: 8.371 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.0008872/0.2808, allocations: 0.9843 MB / 389.5 MB, free: 7.414 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.783e-06/0.2808, allocations: 4.594 kB / 389.5 MB, free: 7.414 MB / 302.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.0012/0.282, allocations: 0.7946 MB / 390.3 MB, free: 7.062 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.358e-05/0.2821, allocations: 11.22 kB / 390.3 MB, free: 7.062 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.769e-05/0.2821, allocations: 13.81 kB / 390.3 MB, free: 7.062 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002305/0.2823, allocations: 84.84 kB / 390.4 MB, free: 7.031 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005296/0.2829, allocations: 186.8 kB / 390.6 MB, free: 7.008 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001694/0.2846, allocations: 2.986 MB / 393.5 MB, free: 4.102 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003874/0.285, allocations: 37.48 kB / 393.6 MB, free: 4.086 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.132e-05/0.285, allocations: 44.38 kB / 393.6 MB, free: 4.078 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 sytem: 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.0003631/0.2854, allocations: 276.4 kB / 393.9 MB, free: 3.859 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001024/0.2855, allocations: 74.98 kB / 394 MB, free: 3.82 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001106/0.2856, allocations: 74.72 kB / 394 MB, free: 3.773 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.787e-06/0.2856, allocations: 3.406 kB / 394 MB, free: 3.773 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.118e-05/0.2857, allocations: 6.656 kB / 394.1 MB, free: 3.77 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.274e-06/0.2857, allocations: 6.25 kB / 394.1 MB, free: 3.766 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001748/0.2874, allocations: 1.26 MB / 395.3 MB, free: 3.027 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.557e-06/0.2874, allocations: 0.7812 kB / 395.3 MB, free: 3.027 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003034/0.2878, allocations: 66.28 kB / 395.4 MB, free: 3.023 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001461/0.2879, allocations: 60.66 kB / 395.4 MB, free: 2.992 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.129e-05/0.2879, allocations: 8 kB / 395.5 MB, free: 2.988 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001348/0.2893, allocations: 2.782 MB / 398.2 MB, free: 216 kB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.2893, allocations: 5.438 kB / 398.2 MB, free: 212 kB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008946/0.2902, allocations: 0.6459 MB / 398.9 MB, free: 15.79 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001295/0.2904, allocations: 144.8 kB / 399 MB, free: 15.65 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.089e-05/0.2904, allocations: 7.719 kB / 399 MB, free: 15.64 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002521/0.2907, allocations: 22.53 kB / 399.1 MB, free: 15.64 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.166e-05/0.2908, allocations: 20 kB / 399.1 MB, free: 15.64 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.994e-05/0.2908, allocations: 14.67 kB / 399.1 MB, free: 15.63 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0005349/0.2913, allocations: 440.2 kB / 399.5 MB, free: 15.44 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.2913, allocations: 1.406 kB / 399.5 MB, free: 15.44 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0009672/0.2923, allocations: 154.5 kB / 399.7 MB, free: 15.42 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.0001867/0.2925, allocations: 106 kB / 399.8 MB, free: 15.32 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001274/0.2938, allocations: 0.668 MB / 400.4 MB, free: 14.95 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.897e-06/0.2938, allocations: 1.344 kB / 400.4 MB, free: 14.95 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004898/0.2943, allocations: 358.5 kB / 400.8 MB, free: 14.68 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000618/0.2949, allocations: 81.41 kB / 400.9 MB, free: 14.64 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003556/0.2985, allocations: 2.48 MB / 403.4 MB, free: 12.94 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006498/0.2991, allocations: 1.038 MB / 404.4 MB, free: 12.09 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001526/0.2993, allocations: 64.38 kB / 404.5 MB, free: 12.07 MB / 318.1 MB Notification: Performance of SimCode: time 5.11e-07/0.2993, allocations: 0 / 404.5 MB, free: 12.07 MB / 318.1 MB Notification: Performance of Templates: time 0.02253/0.3218, allocations: 19.43 MB / 423.9 MB, free: 11.33 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.0.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