Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_cpp_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_3.2.3_cpp_Modelica.Electrical.Analog.Examples.GenerationOfFMUs") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001438/0.001438, allocations: 181.1 kB / 16.4 MB, free: 5.723 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.9/1.9, allocations: 205.4 MB / 222.5 MB, free: 9.125 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001113/0.001112, allocations: 99.08 kB / 270.9 MB, free: 8.367 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005057/0.0005055, allocations: 8 kB / 327 MB, free: 212 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3515/0.352, allocations: 47.58 MB / 374.5 MB, free: 45.39 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1448/0.4969, allocations: 83.43 MB / 458 MB, free: 13.32 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002773/0.4973, allocations: 75.95 kB / 458 MB, free: 13.25 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07187/0.5691, allocations: 18.61 MB / 476.6 MB, free: 10.34 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.986e-06/0.5692, allocations: 0 / 476.6 MB, free: 10.34 MB / 362.7 MB Notification: Performance of Transformations before backend: time 9.067e-05/0.5693, allocations: 31.98 kB / 476.7 MB, free: 10.3 MB / 362.7 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.002964/0.5723, allocations: 1.224 MB / 477.9 MB, free: 9.027 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.304e-05/0.5723, allocations: 8.031 kB / 477.9 MB, free: 9.02 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003128/0.5727, allocations: 146.3 kB / 478.1 MB, free: 8.875 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001537/0.5742, allocations: 0.6292 MB / 478.7 MB, free: 8.203 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.639e-05/0.5743, allocations: 94.41 kB / 478.8 MB, free: 8.109 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002503/0.5746, allocations: 123.9 kB / 478.9 MB, free: 7.988 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003182/0.5778, allocations: 1.248 MB / 480.1 MB, free: 6.57 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.205e-05/0.5779, allocations: 7.938 kB / 480.2 MB, free: 6.562 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001532/0.5781, allocations: 51.94 kB / 480.2 MB, free: 6.512 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.101e-05/0.5781, allocations: 32 kB / 480.2 MB, free: 6.48 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002311/0.5804, allocations: 0.6929 MB / 480.9 MB, free: 5.785 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009849/0.5903, allocations: 6.848 MB / 487.8 MB, free: 14.6 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00106/0.5914, allocations: 277.2 kB / 488 MB, free: 14.31 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001933/0.5917, allocations: 85.11 kB / 488.1 MB, free: 14.21 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.098e-05/0.5917, allocations: 30.56 kB / 488.2 MB, free: 14.17 MB / 378.7 MB Notification: Performance of pre-optimization done (n=27): time 3.015e-06/0.5917, allocations: 0 / 488.2 MB, free: 14.17 MB / 378.7 MB Notification: Performance of matching and sorting (n=29): time 0.003923/0.5956, allocations: 1.409 MB / 489.6 MB, free: 12.65 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.362e-05/0.5958, allocations: 93 kB / 489.7 MB, free: 12.54 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00114/0.5969, allocations: 0.5662 MB / 490.2 MB, free: 11.96 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.752e-05/0.597, allocations: 33.7 kB / 490.3 MB, free: 11.93 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005967/0.5976, allocations: 0.7018 MB / 491 MB, free: 11.21 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001581/0.5978, allocations: 118.4 kB / 491.1 MB, free: 11.1 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.886e-05/0.5978, allocations: 16 kB / 491.1 MB, free: 11.08 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001666/0.598, allocations: 342.8 kB / 491.4 MB, free: 10.74 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004872/0.5985, allocations: 145.9 kB / 491.6 MB, free: 10.59 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008024/0.5993, allocations: 0.5546 MB / 492.1 MB, free: 9.844 MB / 378.7 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.001016/0.6004, allocations: 434.9 kB / 492.5 MB, free: 9.383 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.025e-05/0.6004, allocations: 4 kB / 492.5 MB, free: 9.379 MB / 378.7 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001998/0.6024, allocations: 0.7542 MB / 493.3 MB, free: 8.617 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.054e-05/0.6025, allocations: 16.25 kB / 493.3 MB, free: 8.602 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.198e-05/0.6025, allocations: 12 kB / 493.3 MB, free: 8.59 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003499/0.6028, allocations: 85.62 kB / 493.4 MB, free: 8.5 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001035/0.6039, allocations: 179.7 kB / 493.6 MB, free: 8.324 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003318/0.6072, allocations: 3.001 MB / 496.6 MB, free: 5.055 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007035/0.608, allocations: 28 kB / 496.6 MB, free: 5.027 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.464e-05/0.6081, allocations: 40 kB / 496.7 MB, free: 4.988 MB / 378.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 4,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007304/0.6088, allocations: 281.6 kB / 496.9 MB, free: 4.703 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002043/0.609, allocations: 71.11 kB / 497 MB, free: 4.633 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002026/0.6092, allocations: 70.83 kB / 497.1 MB, free: 4.559 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.121e-06/0.6093, allocations: 4 kB / 497.1 MB, free: 4.555 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.385e-05/0.6093, allocations: 4 kB / 497.1 MB, free: 4.551 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.776e-06/0.6093, allocations: 3.984 kB / 497.1 MB, free: 4.547 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002999/0.6123, allocations: 1.246 MB / 498.3 MB, free: 3.23 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.732e-06/0.6124, allocations: 0 / 498.3 MB, free: 3.23 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006499/0.613, allocations: 64.03 kB / 498.4 MB, free: 3.168 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002758/0.6133, allocations: 57.62 kB / 498.4 MB, free: 3.105 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.788e-05/0.6134, allocations: 15.94 kB / 498.5 MB, free: 3.09 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00278/0.6162, allocations: 2.776 MB / 0.4895 GB, free: 52 kB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.771e-06/0.6162, allocations: 8.156 kB / 0.4895 GB, free: 44 kB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.267/0.8832, allocations: 0.668 MB / 0.4902 GB, free: 101.3 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002197/0.8835, allocations: 140.1 kB / 0.4903 GB, free: 101.2 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.397e-05/0.8836, allocations: 8.875 kB / 0.4903 GB, free: 101.2 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004391/0.884, allocations: 19.2 kB / 0.4903 GB, free: 101.2 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001115/0.8842, allocations: 26.09 kB / 0.4903 GB, free: 101.2 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.593e-05/0.8842, allocations: 11.34 kB / 0.4903 GB, free: 101.2 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0009198/0.8852, allocations: 428.8 kB / 0.4908 GB, free: 101.1 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.8852, allocations: 0.5 kB / 0.4908 GB, free: 101.1 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001393/0.8866, allocations: 158.2 kB / 0.4909 GB, free: 101.1 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 3,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002056/0.8868, allocations: 120.5 kB / 0.491 GB, free: 101 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001628/0.8884, allocations: 0.6546 MB / 0.4917 GB, free: 100.8 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 7.354e-06/0.8885, allocations: 3.812 kB / 0.4917 GB, free: 100.8 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000733/0.8892, allocations: 360.6 kB / 0.492 GB, free: 100.6 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006506/0.8899, allocations: 76.25 kB / 0.4921 GB, free: 100.6 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004756/0.8947, allocations: 2.353 MB / 0.4944 GB, free: 99.27 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007149/0.8954, allocations: 1.059 MB / 0.4954 GB, free: 98.55 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002635/0.8957, allocations: 62.8 kB / 0.4955 GB, free: 98.54 MB / 378.7 MB Notification: Performance of SimCode: time 1.462e-06/0.8957, allocations: 4 kB / 0.4955 GB, free: 98.54 MB / 378.7 MB Notification: Performance of Templates: time 0.03069/0.9264, allocations: 18.44 MB / 0.5135 GB, free: 94.31 MB / 378.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.GenerationOfFMUs --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches