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.001132/0.001132, allocations: 107.9 kB / 17.74 MB, free: 5.363 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.001219/0.001219, allocations: 179.1 kB / 18.66 MB, free: 4.445 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.311/1.311, allocations: 222.9 MB / 242.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001097/0.001097, allocations: 51.92 kB / 352 MB, free: 3.238 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2598/0.2609, allocations: 49.44 MB / 401.4 MB, free: 8.738 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.GenerationOfFMUs): time 0.007115/0.268, allocations: 5.981 MB / 407.4 MB, free: 2.859 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002916/0.271, allocations: 1.66 MB / 409.1 MB, free: 1.195 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004418/0.2715, allocations: 27.88 kB / 409.1 MB, free: 1.168 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000484/0.272, allocations: 249.6 kB / 409.3 MB, free: 0.9219 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003997/0.2724, allocations: 225.7 kB / 409.6 MB, free: 0.6992 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008802/0.2733, allocations: 0.4916 MB / 410 MB, free: 212 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001217/0.2745, allocations: 1.399 MB / 411.4 MB, free: 14.8 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007897/0.2753, allocations: 0.6169 MB / 412.1 MB, free: 14.16 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004778/0.2758, allocations: 478.1 kB / 412.5 MB, free: 13.69 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005621/0.2764, allocations: 0.4934 MB / 413 MB, free: 13.19 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001485/0.2765, allocations: 124 kB / 413.1 MB, free: 13.07 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002398/0.2768, allocations: 139.9 kB / 413.3 MB, free: 12.93 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002059/0.277, allocations: 267 kB / 413.5 MB, free: 12.67 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005225/0.2775, allocations: 0.61 MB / 414.2 MB, free: 12.06 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001409/0.2789, allocations: 1.609 MB / 415.8 MB, free: 10.45 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.661e-06/0.279, allocations: 7.938 kB / 415.8 MB, free: 10.44 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.279, allocations: 4 kB / 415.8 MB, free: 10.44 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.605e-05/0.279, allocations: 0 / 415.8 MB, free: 10.44 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.001871/0.2809, allocations: 1.466 MB / 417.2 MB, free: 8.918 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.619e-05/0.2809, allocations: 12.03 kB / 417.3 MB, free: 8.906 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001775/0.2811, allocations: 138.3 kB / 417.4 MB, free: 8.77 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001069/0.2822, allocations: 0.755 MB / 418.1 MB, free: 7.973 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.942e-05/0.2822, allocations: 90.41 kB / 418.2 MB, free: 7.883 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001423/0.2824, allocations: 123.9 kB / 418.3 MB, free: 7.762 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001796/0.2842, allocations: 1.264 MB / 419.6 MB, free: 6.328 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.846e-05/0.2842, allocations: 3.938 kB / 419.6 MB, free: 6.324 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.764e-05/0.2843, allocations: 56 kB / 419.7 MB, free: 6.27 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.424e-05/0.2844, allocations: 32 kB / 419.7 MB, free: 6.238 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00121/0.2856, allocations: 0.6929 MB / 420.4 MB, free: 5.543 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005311/0.2909, allocations: 6.773 MB / 427.2 MB, free: 14.43 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000632/0.2915, allocations: 271.1 kB / 427.4 MB, free: 14.15 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003401/0.2919, allocations: 181.7 kB / 427.6 MB, free: 13.97 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001156/0.292, allocations: 81.11 kB / 427.7 MB, free: 13.87 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.089e-05/0.2921, allocations: 38.56 kB / 427.7 MB, free: 13.82 MB / 350.1 MB Notification: Performance of pre-optimization done (n=27): time 1.603e-06/0.2921, allocations: 0 / 427.7 MB, free: 13.82 MB / 350.1 MB Notification: Performance of matching and sorting (n=29): time 0.002297/0.2944, allocations: 1.396 MB / 429.1 MB, free: 12.32 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.297e-05/0.2944, allocations: 81.11 kB / 429.2 MB, free: 12.22 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006676/0.2951, allocations: 0.6568 MB / 429.9 MB, free: 11.55 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.611e-05/0.2951, allocations: 29.7 kB / 429.9 MB, free: 11.52 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003964/0.2955, allocations: 0.6915 MB / 430.6 MB, free: 10.82 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.352e-05/0.2956, allocations: 118.4 kB / 430.7 MB, free: 10.7 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002167/0.2959, allocations: 146.4 kB / 430.8 MB, free: 10.55 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001626/0.296, allocations: 386.7 kB / 431.2 MB, free: 10.16 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002676/0.2963, allocations: 141.9 kB / 431.4 MB, free: 10.02 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005137/0.2968, allocations: 0.5546 MB / 431.9 MB, free: 9.27 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.001093/0.2979, allocations: 0.9613 MB / 432.9 MB, free: 8.074 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.831e-06/0.298, allocations: 4 kB / 432.9 MB, free: 8.07 MB / 350.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001201/0.2992, allocations: 0.8014 MB / 433.7 MB, free: 7.258 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.14e-05/0.2992, allocations: 12 kB / 433.7 MB, free: 7.246 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.664e-05/0.2992, allocations: 15.98 kB / 433.7 MB, free: 7.23 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002291/0.2994, allocations: 77.69 kB / 433.8 MB, free: 7.148 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005464/0.3, allocations: 184.1 kB / 434 MB, free: 6.969 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002452/0.3025, allocations: 3.328 MB / 437.3 MB, free: 3.363 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003668/0.3029, allocations: 35.98 kB / 437.3 MB, free: 3.328 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.74e-05/0.3029, allocations: 44 kB / 437.4 MB, free: 3.285 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.0003797/0.3033, allocations: 269.4 kB / 437.6 MB, free: 3.012 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001047/0.3034, allocations: 71.16 kB / 437.7 MB, free: 2.941 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001044/0.3035, allocations: 70.42 kB / 437.8 MB, free: 2.871 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.198e-06/0.3035, allocations: 8.062 kB / 437.8 MB, free: 2.863 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.817e-06/0.3035, allocations: 3.984 kB / 437.8 MB, free: 2.859 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.829e-06/0.3035, allocations: 0 / 437.8 MB, free: 2.859 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001747/0.3053, allocations: 1.251 MB / 439 MB, free: 1.535 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.388e-06/0.3053, allocations: 4 kB / 439 MB, free: 1.531 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002947/0.3056, allocations: 59.91 kB / 439.1 MB, free: 1.473 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001486/0.3058, allocations: 57.72 kB / 439.1 MB, free: 1.41 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.375e-05/0.3058, allocations: 12.11 kB / 439.2 MB, free: 1.398 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001977/0.3078, allocations: 3.053 MB / 442.2 MB, free: 14.06 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/0.3078, allocations: 0 / 442.2 MB, free: 14.06 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008468/0.3087, allocations: 0.6389 MB / 442.9 MB, free: 13.39 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001072/0.3088, allocations: 140.2 kB / 443 MB, free: 13.23 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.16e-05/0.3088, allocations: 8.062 kB / 443 MB, free: 13.22 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002475/0.3091, allocations: 15.98 kB / 443 MB, free: 13.21 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.574e-05/0.3092, allocations: 27.91 kB / 443 MB, free: 13.18 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.95e-05/0.3092, allocations: 11.98 kB / 443.1 MB, free: 13.17 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004763/0.3097, allocations: 431 kB / 443.5 MB, free: 12.75 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3097, allocations: 4 kB / 443.5 MB, free: 12.75 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008329/0.3106, allocations: 160 kB / 443.6 MB, free: 12.59 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.000154/0.3107, allocations: 111.1 kB / 443.7 MB, free: 12.47 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001039/0.3118, allocations: 0.6642 MB / 444.4 MB, free: 11.79 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.145e-06/0.3118, allocations: 0 / 444.4 MB, free: 11.79 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004404/0.3122, allocations: 357.3 kB / 444.8 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.0005142/0.3127, allocations: 78.83 kB / 444.8 MB, free: 11.34 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002731/0.3155, allocations: 1.843 MB / 446.7 MB, free: 9.449 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005997/0.3161, allocations: 1.031 MB / 447.7 MB, free: 8.391 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001366/0.3163, allocations: 67.41 kB / 447.8 MB, free: 8.324 MB / 366.1 MB Notification: Performance of SimCode: time 2.4e-07/0.3163, allocations: 4 kB / 447.8 MB, free: 8.32 MB / 366.1 MB Notification: Performance of Templates: time 0.02098/0.3373, allocations: 19.64 MB / 467.4 MB, free: 4.68 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