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.002148/0.002148, allocations: 180.5 kB / 13.66 MB, free: 1.66 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.012/2.012, allocations: 205.2 MB / 219.4 MB, free: 14.22 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.001085/0.001085, allocations: 89.94 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.97e-05/2.992e-05, allocations: 4 kB / 321.5 MB, free: 17.86 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09419/0.09424, allocations: 47.56 MB / 369.1 MB, free: 2.223 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4097/0.504, allocations: 83.35 MB / 452.4 MB, free: 9.93 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000263/0.5043, allocations: 71.78 kB / 452.5 MB, free: 9.895 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07434/0.5787, allocations: 18.58 MB / 471.1 MB, free: 8.945 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.144e-06/0.5788, allocations: 0 / 471.1 MB, free: 8.945 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0001079/0.5789, allocations: 32 kB / 471.1 MB, free: 8.914 MB / 346.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.003183/0.5821, allocations: 1.147 MB / 472.3 MB, free: 7.719 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.649e-05/0.5822, allocations: 12.03 kB / 472.3 MB, free: 7.707 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004552/0.5826, allocations: 146.2 kB / 472.4 MB, free: 7.562 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001667/0.5843, allocations: 0.6292 MB / 473 MB, free: 6.887 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001058/0.5844, allocations: 90.41 kB / 473.1 MB, free: 6.797 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002432/0.5847, allocations: 116 kB / 473.2 MB, free: 6.684 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002947/0.5876, allocations: 1.225 MB / 474.5 MB, free: 5.289 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.097e-05/0.5877, allocations: 11.92 kB / 474.5 MB, free: 5.277 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001518/0.5879, allocations: 56 kB / 474.5 MB, free: 5.223 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.233e-05/0.5879, allocations: 32 kB / 474.6 MB, free: 5.191 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001976/0.5899, allocations: 0.6385 MB / 475.2 MB, free: 4.555 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00955/0.5995, allocations: 6.848 MB / 482.1 MB, free: 13.37 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009643/0.6005, allocations: 249.3 kB / 482.3 MB, free: 13.11 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004899/0.601, allocations: 165.7 kB / 482.5 MB, free: 12.94 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000169/0.6012, allocations: 89.09 kB / 482.5 MB, free: 12.84 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.39e-05/0.6013, allocations: 46.44 kB / 482.6 MB, free: 12.78 MB / 362.7 MB Notification: Performance of pre-optimization done (n=27): time 2.826e-06/0.6013, allocations: 0 / 482.6 MB, free: 12.78 MB / 362.7 MB Notification: Performance of matching and sorting (n=29): time 0.003035/0.6043, allocations: 1.275 MB / 483.9 MB, free: 11.39 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.31e-05/0.6045, allocations: 85.05 kB / 483.9 MB, free: 11.29 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001117/0.6056, allocations: 0.5624 MB / 484.5 MB, free: 10.72 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.224e-05/0.6056, allocations: 33.7 kB / 484.5 MB, free: 10.68 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005998/0.6063, allocations: 0.7057 MB / 485.2 MB, free: 9.965 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001341/0.6064, allocations: 114.4 kB / 485.4 MB, free: 9.852 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.131e-05/0.6065, allocations: 16 kB / 485.4 MB, free: 9.836 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001619/0.6066, allocations: 338.8 kB / 485.7 MB, free: 9.496 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003776/0.607, allocations: 125.8 kB / 485.8 MB, free: 9.371 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007197/0.6078, allocations: 0.5338 MB / 486.4 MB, free: 8.637 MB / 362.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.0009564/0.6087, allocations: 429.3 kB / 486.8 MB, free: 8.184 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.15e-05/0.6088, allocations: 4 kB / 486.8 MB, free: 8.18 MB / 362.7 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001843/0.6106, allocations: 0.7059 MB / 487.5 MB, free: 7.461 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.285e-05/0.6107, allocations: 12 kB / 487.5 MB, free: 7.449 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.557e-05/0.6107, allocations: 16 kB / 487.5 MB, free: 7.434 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003616/0.6111, allocations: 85.62 kB / 487.6 MB, free: 7.344 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001063/0.6121, allocations: 188.2 kB / 487.8 MB, free: 7.16 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003307/0.6155, allocations: 2.969 MB / 490.8 MB, free: 3.922 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007521/0.6163, allocations: 36.06 kB / 490.8 MB, free: 3.887 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.132e-05/0.6164, allocations: 47.98 kB / 490.8 MB, free: 3.84 MB / 362.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 () * 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.0002354/0.6166, allocations: 164.5 kB / 491 MB, free: 3.672 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001605/0.6168, allocations: 75.02 kB / 491.1 MB, free: 3.598 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002169/0.617, allocations: 74.53 kB / 491.1 MB, free: 3.523 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.879e-06/0.617, allocations: 0 / 491.1 MB, free: 3.523 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.621e-05/0.6171, allocations: 4 kB / 491.1 MB, free: 3.52 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.298e-06/0.6171, allocations: 3.984 kB / 491.2 MB, free: 3.516 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002674/0.6198, allocations: 1.22 MB / 492.4 MB, free: 2.223 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.125e-06/0.6198, allocations: 3.953 kB / 492.4 MB, free: 2.219 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006154/0.6204, allocations: 68.05 kB / 492.4 MB, free: 2.152 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002659/0.6207, allocations: 61.62 kB / 492.5 MB, free: 2.086 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.286e-05/0.6208, allocations: 8 kB / 492.5 MB, free: 2.078 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00278/0.6236, allocations: 2.756 MB / 495.3 MB, free: 15.05 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.096e-06/0.6236, allocations: 0 / 495.3 MB, free: 15.05 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00139/0.625, allocations: 0.6545 MB / 495.9 MB, free: 14.34 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002304/0.6253, allocations: 136.2 kB / 496.1 MB, free: 14.19 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001107/0.6254, allocations: 8.062 kB / 496.1 MB, free: 14.18 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004418/0.6259, allocations: 23.98 kB / 496.1 MB, free: 14.16 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001127/0.626, allocations: 27.86 kB / 496.1 MB, free: 14.13 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.216e-05/0.626, allocations: 15.92 kB / 496.1 MB, free: 14.11 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0008437/0.6269, allocations: 423.2 kB / 496.5 MB, free: 13.71 MB / 378.7 MB Notification: Performance of sort global known variables: time 6.01e-07/0.6269, allocations: 0 / 496.5 MB, free: 13.71 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001225/0.6281, allocations: 152 kB / 496.7 MB, free: 13.56 MB / 378.7 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 () * 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.0002281/0.6284, allocations: 111.9 kB / 496.8 MB, free: 13.44 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00155/0.6299, allocations: 0.6261 MB / 497.4 MB, free: 12.79 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.608e-06/0.63, allocations: 0 / 497.4 MB, free: 12.79 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006831/0.6307, allocations: 354.2 kB / 497.8 MB, free: 12.42 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006254/0.6313, allocations: 75.42 kB / 497.8 MB, free: 12.35 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003822/0.6351, allocations: 1.386 MB / 499.2 MB, free: 10.91 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008531/0.636, allocations: 1.062 MB / 0.4886 GB, free: 9.824 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002513/0.6363, allocations: 59.42 kB / 0.4886 GB, free: 9.766 MB / 378.7 MB Notification: Performance of SimCode: time 1.382e-06/0.6363, allocations: 0 / 0.4886 GB, free: 9.766 MB / 378.7 MB Notification: Performance of Templates: time 0.03493/0.6712, allocations: 18.44 MB / 0.5066 GB, free: 7.285 MB / 394.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