Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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.1.0-beta.om_Modelica.Electrical.Analog.Examples.GenerationOfFMUs") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001295/0.001295, 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.001364/0.001364, 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 4.1.0-beta.om/package.mo): time 1.418/1.418, allocations: 227.7 MB / 247.7 MB, free: 10.3 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001959/0.001959, allocations: 65.03 kB / 307.9 MB, free: 0.5 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09394/0.09591, allocations: 50.53 MB / 358.4 MB, free: 13.95 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.GenerationOfFMUs): time 0.007904/0.1038, allocations: 6.016 MB / 364.4 MB, free: 7.906 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003506/0.1074, allocations: 1.733 MB / 366.2 MB, free: 6.168 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005361/0.1079, allocations: 31.81 kB / 366.2 MB, free: 6.137 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000526/0.1085, allocations: 253.6 kB / 366.5 MB, free: 5.887 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005126/0.109, allocations: 217.7 kB / 366.7 MB, free: 5.672 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001008/0.1101, allocations: 0.5188 MB / 367.2 MB, free: 5.152 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001415/0.1115, allocations: 1.384 MB / 368.6 MB, free: 3.762 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008612/0.1124, allocations: 0.6208 MB / 369.2 MB, free: 3.121 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006093/0.113, allocations: 482.1 kB / 369.7 MB, free: 2.648 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005372/0.1135, allocations: 0.4934 MB / 370.2 MB, free: 2.152 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001655/0.1137, allocations: 124 kB / 370.3 MB, free: 2.031 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002343/0.114, allocations: 140 kB / 370.4 MB, free: 1.895 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002221/0.1142, allocations: 267 kB / 370.7 MB, free: 1.633 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005404/0.1147, allocations: 0.6177 MB / 371.3 MB, free: 1.012 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1443/0.2591, allocations: 1.567 MB / 372.9 MB, free: 12.84 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.544e-06/0.2591, allocations: 0.9062 kB / 372.9 MB, free: 12.84 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.2591, allocations: 0 / 372.9 MB, free: 12.84 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.763e-05/0.2592, allocations: 0 / 372.9 MB, free: 12.84 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.002212/0.2614, allocations: 1.461 MB / 374.3 MB, free: 12.11 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.261e-05/0.2614, allocations: 9.562 kB / 374.3 MB, free: 12.11 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004008/0.2619, allocations: 160.3 kB / 374.5 MB, free: 12.03 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001018/0.2629, allocations: 0.7195 MB / 375.2 MB, free: 11.73 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.322e-05/0.263, allocations: 91.81 kB / 375.3 MB, free: 11.72 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001622/0.2631, allocations: 123.2 kB / 375.4 MB, free: 11.72 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001827/0.265, allocations: 1.268 MB / 376.7 MB, free: 11.27 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.358e-05/0.265, allocations: 9.531 kB / 376.7 MB, free: 11.27 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.106e-05/0.2651, allocations: 52.47 kB / 376.7 MB, free: 11.27 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.043e-05/0.2652, allocations: 31.5 kB / 376.8 MB, free: 11.27 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001182/0.2663, allocations: 0.6982 MB / 377.5 MB, free: 11.25 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004635/0.271, allocations: 6.811 MB / 384.3 MB, free: 6.215 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006348/0.2716, allocations: 277.6 kB / 384.6 MB, free: 6.09 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003634/0.272, allocations: 187.2 kB / 384.7 MB, free: 6.02 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001676/0.2722, allocations: 88.53 kB / 384.8 MB, free: 5.922 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.202e-05/0.2722, allocations: 33.56 kB / 384.9 MB, free: 5.883 MB / 302.1 MB Notification: Performance of pre-optimization done (n=27): time 2.003e-06/0.2722, allocations: 0 / 384.9 MB, free: 5.883 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.00215/0.2744, allocations: 1.399 MB / 386.3 MB, free: 4.855 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.791e-05/0.2744, allocations: 80.3 kB / 386.3 MB, free: 4.762 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007151/0.2752, allocations: 0.6622 MB / 387 MB, free: 4.465 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.029e-05/0.2752, allocations: 30.73 kB / 387 MB, free: 4.43 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003346/0.2755, allocations: 0.6861 MB / 387.7 MB, free: 3.887 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.963e-05/0.2756, allocations: 119.6 kB / 387.8 MB, free: 3.801 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001617/0.2758, allocations: 144.7 kB / 388 MB, free: 3.719 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001062/0.2759, allocations: 383.8 kB / 388.3 MB, free: 3.375 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002582/0.2761, allocations: 149.6 kB / 388.5 MB, free: 3.332 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003954/0.2766, allocations: 0.5522 MB / 389 MB, free: 2.727 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.000889/0.2774, allocations: 0.9533 MB / 390 MB, free: 1.848 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.454e-06/0.2775, allocations: 4.344 kB / 390 MB, free: 1.848 MB / 302.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001175/0.2786, allocations: 0.7918 MB / 390.8 MB, free: 1.578 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.451e-05/0.2787, allocations: 14.44 kB / 390.8 MB, free: 1.574 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.867e-05/0.2787, allocations: 16.48 kB / 390.8 MB, free: 1.574 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002329/0.2789, allocations: 78.89 kB / 390.9 MB, free: 1.547 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005034/0.2795, allocations: 186.8 kB / 391.1 MB, free: 1.539 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002381/0.2818, allocations: 3.325 MB / 394.4 MB, free: 14.32 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004381/0.2823, allocations: 32.16 kB / 394.4 MB, free: 14.3 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.206e-05/0.2824, allocations: 45.19 kB / 394.5 MB, free: 14.3 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.0004526/0.2828, allocations: 278.4 kB / 394.8 MB, free: 14.09 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001206/0.283, allocations: 74.27 kB / 394.8 MB, free: 14.05 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001313/0.2831, allocations: 70.73 kB / 394.9 MB, free: 14.01 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.309e-06/0.2831, allocations: 3.438 kB / 394.9 MB, free: 14.01 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.446e-05/0.2831, allocations: 7.094 kB / 394.9 MB, free: 14 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.521e-06/0.2831, allocations: 2.062 kB / 394.9 MB, free: 14 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002051/0.2852, allocations: 1.252 MB / 396.2 MB, free: 13.28 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.496e-06/0.2852, allocations: 1.5 kB / 396.2 MB, free: 13.28 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002992/0.2855, allocations: 68.72 kB / 396.2 MB, free: 13.27 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001594/0.2857, allocations: 52.89 kB / 396.3 MB, free: 13.25 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.416e-05/0.2857, allocations: 8.172 kB / 396.3 MB, free: 13.25 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002407/0.2881, allocations: 3.063 MB / 399.3 MB, free: 10.21 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.2881, allocations: 1.188 kB / 399.3 MB, free: 10.21 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009258/0.2891, allocations: 0.6398 MB / 400 MB, free: 9.789 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001499/0.2892, allocations: 138.1 kB / 400.1 MB, free: 9.652 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.513e-05/0.2893, allocations: 7.688 kB / 400.1 MB, free: 9.648 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002584/0.2896, allocations: 18.8 kB / 400.2 MB, free: 9.641 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.572e-05/0.2896, allocations: 26.77 kB / 400.2 MB, free: 9.637 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.888e-05/0.2897, allocations: 9.438 kB / 400.2 MB, free: 9.637 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0005335/0.2902, allocations: 442.5 kB / 400.6 MB, free: 9.441 MB / 318.1 MB Notification: Performance of sort global known variables: time 2e-07/0.2902, allocations: 0 / 400.6 MB, free: 9.441 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001018/0.2912, allocations: 155 kB / 400.8 MB, free: 9.426 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.0001542/0.2914, allocations: 112.2 kB / 400.9 MB, free: 9.328 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001144/0.2925, allocations: 0.6699 MB / 401.5 MB, free: 8.984 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.396e-06/0.2926, allocations: 0.875 kB / 401.5 MB, free: 8.984 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005033/0.2931, allocations: 358 kB / 401.9 MB, free: 8.723 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005572/0.2936, allocations: 81.58 kB / 402 MB, free: 8.68 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003118/0.2968, allocations: 1.881 MB / 403.9 MB, free: 7.547 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006971/0.2975, allocations: 1.037 MB / 404.9 MB, free: 6.832 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001342/0.2976, allocations: 62.44 kB / 405 MB, free: 6.82 MB / 318.1 MB Notification: Performance of SimCode: time 7.31e-07/0.2976, allocations: 0 / 405 MB, free: 6.82 MB / 318.1 MB Notification: Performance of Templates: time 0.02565/0.3233, allocations: 19.59 MB / 424.5 MB, free: 5.961 MB / 334.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.GenerationOfFMUs -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_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_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches