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.001124/0.001124, allocations: 114.9 kB / 17.74 MB, free: 5.328 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.001701/0.001701, allocations: 184.5 kB / 18.67 MB, free: 4.406 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.303/1.303, allocations: 222.9 MB / 242.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000939/0.000939, allocations: 51.92 kB / 352 MB, free: 3.211 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2423/0.2433, allocations: 49.43 MB / 401.4 MB, free: 8.727 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.GenerationOfFMUs): time 0.007838/0.2511, allocations: 6.001 MB / 407.4 MB, free: 2.828 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003006/0.2542, allocations: 1.648 MB / 409.1 MB, free: 1.176 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007107/0.2549, allocations: 27.88 kB / 409.1 MB, free: 1.148 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005725/0.2555, allocations: 249.6 kB / 409.3 MB, free: 0.9023 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000661/0.2562, allocations: 225.7 kB / 409.6 MB, free: 0.6797 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001079/0.2573, allocations: 0.4916 MB / 410.1 MB, free: 192 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0013/0.2586, allocations: 1.399 MB / 411.5 MB, free: 14.78 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008186/0.2594, allocations: 0.6208 MB / 412.1 MB, free: 14.14 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005401/0.26, allocations: 474.1 kB / 412.5 MB, free: 13.67 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005115/0.2605, allocations: 0.4973 MB / 413 MB, free: 13.17 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001515/0.2607, allocations: 124 kB / 413.2 MB, free: 13.05 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002139/0.2609, allocations: 135.9 kB / 413.3 MB, free: 12.91 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001856/0.2611, allocations: 263.1 kB / 413.5 MB, free: 12.66 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004587/0.2616, allocations: 0.6178 MB / 414.2 MB, free: 12.04 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001372/0.2629, allocations: 1.612 MB / 415.8 MB, free: 10.42 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.263, allocations: 4 kB / 415.8 MB, free: 10.42 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.263, allocations: 0 / 415.8 MB, free: 10.42 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.406e-05/0.263, allocations: 0 / 415.8 MB, free: 10.42 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.001909/0.2649, allocations: 1.462 MB / 417.2 MB, free: 8.902 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.741e-05/0.2649, allocations: 11.97 kB / 417.3 MB, free: 8.891 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001966/0.2651, allocations: 146.2 kB / 417.4 MB, free: 8.746 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001034/0.2662, allocations: 0.7511 MB / 418.1 MB, free: 7.953 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.986e-05/0.2663, allocations: 90.41 kB / 418.2 MB, free: 7.863 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001322/0.2664, allocations: 123.9 kB / 418.4 MB, free: 7.742 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001785/0.2682, allocations: 1.264 MB / 419.6 MB, free: 6.309 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.047e-05/0.2682, allocations: 7.938 kB / 419.6 MB, free: 6.301 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.831e-05/0.2683, allocations: 56 kB / 419.7 MB, free: 6.246 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.617e-05/0.2684, allocations: 32 kB / 419.7 MB, free: 6.215 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001202/0.2696, allocations: 0.6851 MB / 420.4 MB, free: 5.527 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005633/0.2752, allocations: 6.781 MB / 427.2 MB, free: 14.41 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00068/0.2759, allocations: 257.3 kB / 427.4 MB, free: 14.14 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003609/0.2763, allocations: 189.6 kB / 427.6 MB, free: 13.95 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001169/0.2764, allocations: 85.09 kB / 427.7 MB, free: 13.85 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.052e-05/0.2765, allocations: 42.56 kB / 427.7 MB, free: 13.8 MB / 350.1 MB Notification: Performance of pre-optimization done (n=27): time 1.994e-06/0.2765, allocations: 0 / 427.7 MB, free: 13.8 MB / 350.1 MB Notification: Performance of matching and sorting (n=29): time 0.002369/0.2789, allocations: 1.396 MB / 429.1 MB, free: 12.29 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.743e-05/0.2789, allocations: 77.11 kB / 429.2 MB, free: 12.2 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007025/0.2796, allocations: 0.6607 MB / 429.9 MB, free: 11.53 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.942e-05/0.2797, allocations: 33.7 kB / 429.9 MB, free: 11.49 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003992/0.2801, allocations: 0.6798 MB / 430.6 MB, free: 10.8 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.856e-05/0.2802, allocations: 122.4 kB / 430.7 MB, free: 10.68 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00017/0.2804, allocations: 146.4 kB / 430.8 MB, free: 10.52 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001603/0.2805, allocations: 382.8 kB / 431.2 MB, free: 10.14 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002672/0.2808, allocations: 141.9 kB / 431.4 MB, free: 10 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005171/0.2813, allocations: 0.5546 MB / 431.9 MB, free: 9.25 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.001052/0.2824, allocations: 0.9692 MB / 432.9 MB, free: 8.047 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.632e-06/0.2824, allocations: 4 kB / 432.9 MB, free: 8.043 MB / 350.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001221/0.2836, allocations: 0.7936 MB / 433.7 MB, free: 7.238 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.136e-05/0.2837, allocations: 12 kB / 433.7 MB, free: 7.227 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.767e-05/0.2837, allocations: 16 kB / 433.7 MB, free: 7.211 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002441/0.284, allocations: 82.25 kB / 433.8 MB, free: 7.125 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005341/0.2845, allocations: 183.7 kB / 434 MB, free: 6.945 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002432/0.2869, allocations: 3.324 MB / 437.3 MB, free: 3.344 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004045/0.2874, allocations: 39.92 kB / 437.3 MB, free: 3.305 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.427e-05/0.2874, allocations: 43.94 kB / 437.4 MB, free: 3.262 MB / 350.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.0004249/0.2879, allocations: 265.5 kB / 437.6 MB, free: 2.992 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001137/0.288, allocations: 71.14 kB / 437.7 MB, free: 2.922 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001085/0.2881, allocations: 78.48 kB / 437.8 MB, free: 2.844 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.577e-06/0.2881, allocations: 4 kB / 437.8 MB, free: 2.84 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.823e-06/0.2881, allocations: 0 / 437.8 MB, free: 2.84 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.031e-06/0.2881, allocations: 3.984 kB / 437.8 MB, free: 2.836 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00172/0.2898, allocations: 1.243 MB / 439 MB, free: 1.52 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.936e-06/0.2899, allocations: 0 / 439 MB, free: 1.52 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003125/0.2902, allocations: 67.89 kB / 439.1 MB, free: 1.453 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000155/0.2903, allocations: 57.75 kB / 439.2 MB, free: 1.391 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.143e-05/0.2904, allocations: 8 kB / 439.2 MB, free: 1.383 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002088/0.2925, allocations: 3.053 MB / 442.2 MB, free: 14.05 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.2925, allocations: 0 / 442.2 MB, free: 14.05 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008589/0.2934, allocations: 0.6429 MB / 442.9 MB, free: 13.37 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000121/0.2935, allocations: 140.1 kB / 443 MB, free: 13.21 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.944e-05/0.2935, allocations: 4.062 kB / 443 MB, free: 13.21 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002539/0.2938, allocations: 19.98 kB / 443 MB, free: 13.19 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.134e-05/0.2939, allocations: 23.91 kB / 443 MB, free: 13.16 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.949e-05/0.2939, allocations: 12 kB / 443.1 MB, free: 13.15 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004972/0.2944, allocations: 435 kB / 443.5 MB, free: 12.73 MB / 366.1 MB Notification: Performance of sort global known variables: time 2e-07/0.2944, allocations: 4 kB / 443.5 MB, free: 12.73 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008792/0.2953, allocations: 156 kB / 443.6 MB, free: 12.57 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.0001358/0.2954, allocations: 111.2 kB / 443.7 MB, free: 12.46 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00104/0.2965, allocations: 0.662 MB / 444.4 MB, free: 11.77 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.407e-06/0.2965, allocations: 0 / 444.4 MB, free: 11.77 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004434/0.297, allocations: 349.3 kB / 444.7 MB, free: 11.41 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005755/0.2975, allocations: 96.22 kB / 444.8 MB, free: 11.32 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002891/0.3004, allocations: 1.849 MB / 446.7 MB, free: 9.422 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006161/0.3011, allocations: 1.034 MB / 447.7 MB, free: 8.359 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001408/0.3012, allocations: 67.41 kB / 447.8 MB, free: 8.293 MB / 366.1 MB Notification: Performance of SimCode: time 6.31e-07/0.3012, allocations: 0 / 447.8 MB, free: 8.293 MB / 366.1 MB Notification: Performance of Templates: time 0.02218/0.3234, allocations: 19.77 MB / 467.6 MB, free: 4.512 MB / 382.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 -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