Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 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_trunk_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_trunk_cpp_Modelica.Electrical.Analog.Examples.GenerationOfFMUs") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001084/0.001088, allocations: 196.2 kB / 17.05 MB, free: 5.102 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.413/1.413, allocations: 226.6 MB / 244.3 MB, free: 6.461 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008212/0.0008213, allocations: 96.17 kB / 296.4 MB, free: 6.754 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002345/0.0002348, allocations: 8 kB / 356.2 MB, free: 10.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2303/0.2305, allocations: 51.29 MB / 407.5 MB, free: 27.79 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.GenerationOfFMUs): time 0.003756/0.2343, allocations: 5.165 MB / 412.7 MB, free: 22.61 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001831/0.2362, allocations: 1.602 MB / 414.3 MB, free: 21.01 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003208/0.2365, allocations: 33.22 kB / 414.3 MB, free: 20.98 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002798/0.2368, allocations: 174.5 kB / 414.5 MB, free: 20.81 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002613/0.2371, allocations: 171.6 kB / 414.6 MB, free: 20.64 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005355/0.2376, allocations: 331.4 kB / 415 MB, free: 20.32 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006853/0.2383, allocations: 1.223 MB / 416.2 MB, free: 19.09 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004813/0.2388, allocations: 464.7 kB / 416.6 MB, free: 18.62 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003075/0.2391, allocations: 362.3 kB / 417 MB, free: 18.27 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000262/0.2394, allocations: 397.7 kB / 417.4 MB, free: 17.88 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.264e-05/0.2394, allocations: 52 kB / 417.4 MB, free: 17.83 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001507/0.2396, allocations: 60 kB / 417.5 MB, free: 17.77 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.07e-05/0.2397, allocations: 175.2 kB / 417.7 MB, free: 17.6 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001122/0.2398, allocations: 241 kB / 417.9 MB, free: 17.36 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006327/0.2404, allocations: 1.162 MB / 419.1 MB, free: 16.19 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.05e-06/0.2405, allocations: 0 / 419.1 MB, free: 16.19 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.424e-06/0.2405, allocations: 7.922 kB / 419.1 MB, free: 16.18 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.366e-05/0.2405, allocations: 0 / 419.1 MB, free: 16.18 MB / 298.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.001356/0.2419, allocations: 1.248 MB / 420.3 MB, free: 14.88 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.348e-05/0.2419, allocations: 8.031 kB / 420.3 MB, free: 14.88 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003111/0.2422, allocations: 166.3 kB / 420.5 MB, free: 14.71 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007167/0.2429, allocations: 0.6931 MB / 421.2 MB, free: 13.97 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.717e-05/0.243, allocations: 86.41 kB / 421.3 MB, free: 13.89 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001058/0.2431, allocations: 119.9 kB / 421.4 MB, free: 13.77 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00148/0.2446, allocations: 1.264 MB / 422.6 MB, free: 12.33 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.767e-05/0.2446, allocations: 7.938 kB / 422.6 MB, free: 12.32 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.592e-05/0.2447, allocations: 52 kB / 422.7 MB, free: 12.27 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.049e-05/0.2447, allocations: 32 kB / 422.7 MB, free: 12.24 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00102/0.2458, allocations: 0.6929 MB / 423.4 MB, free: 11.55 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003903/0.2497, allocations: 6.836 MB / 430.3 MB, free: 4.375 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005411/0.2502, allocations: 269.3 kB / 430.5 MB, free: 4.094 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002869/0.2505, allocations: 177.7 kB / 430.7 MB, free: 3.914 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001212/0.2507, allocations: 89.08 kB / 430.8 MB, free: 3.809 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.914e-05/0.2507, allocations: 42.5 kB / 430.8 MB, free: 3.758 MB / 298.7 MB Notification: Performance of pre-optimization done (n=27): time 1.713e-06/0.2507, allocations: 4 kB / 430.8 MB, free: 3.754 MB / 298.7 MB Notification: Performance of matching and sorting (n=29): time 0.001842/0.2526, allocations: 1.402 MB / 432.2 MB, free: 2.242 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.159e-05/0.2526, allocations: 85.11 kB / 432.3 MB, free: 2.141 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005046/0.2531, allocations: 0.6529 MB / 433 MB, free: 1.477 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.863e-05/0.2531, allocations: 33.7 kB / 433 MB, free: 1.438 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002461/0.2534, allocations: 0.6759 MB / 433.7 MB, free: 0.75 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.896e-05/0.2534, allocations: 122.4 kB / 433.8 MB, free: 0.6289 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.981e-05/0.2535, allocations: 16 kB / 433.8 MB, free: 0.6133 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.131e-05/0.2536, allocations: 382.8 kB / 434.2 MB, free: 236 kB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002243/0.2538, allocations: 149.9 kB / 434.3 MB, free: 88 kB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005107/0.2543, allocations: 0.5545 MB / 434.9 MB, free: 15.34 MB / 314.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.0005888/0.2549, allocations: 439.8 kB / 435.3 MB, free: 14.87 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.34e-06/0.2549, allocations: 4 kB / 435.3 MB, free: 14.87 MB / 314.7 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001177/0.2561, allocations: 0.786 MB / 436.1 MB, free: 14.07 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.293e-05/0.2561, allocations: 12 kB / 436.1 MB, free: 14.06 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.914e-05/0.2562, allocations: 23.88 kB / 436.1 MB, free: 14.04 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002251/0.2564, allocations: 85.62 kB / 436.2 MB, free: 13.95 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005223/0.2569, allocations: 184.2 kB / 436.4 MB, free: 13.77 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002205/0.2592, allocations: 2.978 MB / 439.4 MB, free: 10.52 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003479/0.2595, allocations: 39.94 kB / 439.4 MB, free: 10.48 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.681e-05/0.2596, allocations: 44 kB / 439.5 MB, free: 10.44 MB / 314.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.0003909/0.26, allocations: 277.5 kB / 439.7 MB, free: 10.16 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001018/0.2601, allocations: 75.06 kB / 439.8 MB, free: 10.09 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.568e-05/0.2602, allocations: 66.42 kB / 439.9 MB, free: 10.02 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.087e-06/0.2602, allocations: 8.062 kB / 439.9 MB, free: 10.01 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.061e-06/0.2602, allocations: 0 / 439.9 MB, free: 10.01 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.482e-06/0.2602, allocations: 3.984 kB / 439.9 MB, free: 10 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001634/0.2619, allocations: 1.262 MB / 441.1 MB, free: 8.672 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.765e-06/0.2619, allocations: 0 / 441.1 MB, free: 8.672 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003091/0.2622, allocations: 63.91 kB / 441.2 MB, free: 8.609 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001465/0.2623, allocations: 69.7 kB / 441.3 MB, free: 8.535 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.921e-05/0.2624, allocations: 4 kB / 441.3 MB, free: 8.531 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001816/0.2642, allocations: 2.771 MB / 444 MB, free: 5.496 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.2642, allocations: 4.031 kB / 444.1 MB, free: 5.492 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008083/0.265, allocations: 0.644 MB / 444.7 MB, free: 4.812 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000105/0.2651, allocations: 140.2 kB / 444.8 MB, free: 4.656 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.482e-05/0.2652, allocations: 8.062 kB / 444.8 MB, free: 4.648 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002489/0.2654, allocations: 16 kB / 444.9 MB, free: 4.633 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.193e-05/0.2655, allocations: 35.84 kB / 444.9 MB, free: 4.598 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.928e-05/0.2655, allocations: 12 kB / 444.9 MB, free: 4.586 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.000451/0.266, allocations: 427 kB / 445.3 MB, free: 4.172 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.266, allocations: 0 / 445.3 MB, free: 4.172 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007131/0.2667, allocations: 160 kB / 445.5 MB, free: 4.016 MB / 314.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 () * 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.000144/0.2669, allocations: 112.5 kB / 445.6 MB, free: 3.898 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0009399/0.2678, allocations: 0.6452 MB / 446.2 MB, free: 3.23 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.2678, allocations: 4.062 kB / 446.2 MB, free: 3.227 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004511/0.2683, allocations: 365.2 kB / 446.6 MB, free: 2.844 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004673/0.2688, allocations: 87.22 kB / 446.7 MB, free: 2.758 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002784/0.2716, allocations: 2.363 MB / 449 MB, free: 356 kB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005706/0.2721, allocations: 1.027 MB / 450.1 MB, free: 15.29 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001288/0.2723, allocations: 75.34 kB / 450.1 MB, free: 15.22 MB / 330.7 MB Notification: Performance of SimCode: time 3.61e-07/0.2723, allocations: 0 / 450.1 MB, free: 15.22 MB / 330.7 MB Notification: Performance of Templates: time 0.01981/0.2921, allocations: 19.34 MB / 469.5 MB, free: 11.87 MB / 346.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.GenerationOfFMUs --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches