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.001007/0.001007, allocations: 174.7 kB / 16.72 MB, free: 5.078 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.494/1.494, allocations: 205.4 MB / 222.9 MB, free: 9.016 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.0008582/0.000858, allocations: 82.42 kB / 271.2 MB, free: 8.246 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003288/0.0003289, allocations: 8 kB / 327.5 MB, free: 15.88 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2634/0.2638, allocations: 47.57 MB / 375.1 MB, free: 45.42 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.GenerationOfFMUs): time 0.007153/0.271, allocations: 5.121 MB / 380.2 MB, free: 41.36 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.004892/0.276, allocations: 1.606 MB / 381.8 MB, free: 40.03 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001614/0.2776, allocations: 30.75 kB / 381.8 MB, free: 40.02 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007362/0.2784, allocations: 172.1 kB / 382 MB, free: 39.87 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001096/0.2795, allocations: 168.9 kB / 382.2 MB, free: 39.72 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001496/0.281, allocations: 335.7 kB / 382.5 MB, free: 39.46 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002585/0.2836, allocations: 1.271 MB / 383.8 MB, free: 38.69 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001294/0.285, allocations: 0.5373 MB / 384.3 MB, free: 38.34 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009806/0.286, allocations: 358.6 kB / 384.7 MB, free: 38.14 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00065/0.2866, allocations: 388.5 kB / 385 MB, free: 37.87 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000172/0.2868, allocations: 49.22 kB / 385.1 MB, free: 37.87 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002961/0.2871, allocations: 69.08 kB / 385.2 MB, free: 37.86 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001694/0.2873, allocations: 169.5 kB / 385.3 MB, free: 37.72 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007057/0.288, allocations: 0.5077 MB / 385.8 MB, free: 37.35 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00135/0.2894, allocations: 1.162 MB / 387 MB, free: 36.43 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.885e-06/0.2894, allocations: 4 kB / 387 MB, free: 36.43 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.565e-06/0.2894, allocations: 0 / 387 MB, free: 36.43 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.458e-05/0.2895, allocations: 0 / 387 MB, free: 36.43 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.002688/0.2922, allocations: 1.244 MB / 388.2 MB, free: 35.45 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.605e-05/0.2923, allocations: 8.031 kB / 388.2 MB, free: 35.44 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003189/0.2926, allocations: 138.3 kB / 388.4 MB, free: 35.3 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001335/0.2939, allocations: 0.7237 MB / 389.1 MB, free: 34.54 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.776e-05/0.294, allocations: 90.41 kB / 389.2 MB, free: 34.45 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000181/0.2942, allocations: 123.9 kB / 389.3 MB, free: 34.32 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002702/0.2969, allocations: 1.256 MB / 390.6 MB, free: 32.89 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.528e-05/0.297, allocations: 11.88 kB / 390.6 MB, free: 32.88 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001323/0.2972, allocations: 48 kB / 390.6 MB, free: 32.84 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.085e-05/0.2972, allocations: 32 kB / 390.7 MB, free: 32.8 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001794/0.299, allocations: 0.6929 MB / 391.4 MB, free: 32.11 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007036/0.3061, allocations: 6.832 MB / 398.2 MB, free: 24.94 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008751/0.307, allocations: 273.2 kB / 398.5 MB, free: 24.66 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004377/0.3075, allocations: 177.7 kB / 398.6 MB, free: 24.48 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001888/0.3077, allocations: 81.61 kB / 398.7 MB, free: 24.38 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.065e-05/0.3077, allocations: 46.5 kB / 398.8 MB, free: 24.32 MB / 298.7 MB Notification: Performance of pre-optimization done (n=27): time 4.358e-06/0.3077, allocations: 3.938 kB / 398.8 MB, free: 24.32 MB / 298.7 MB Notification: Performance of matching and sorting (n=29): time 0.003274/0.311, allocations: 1.408 MB / 400.2 MB, free: 22.8 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.752e-05/0.3111, allocations: 89.11 kB / 400.3 MB, free: 22.7 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009397/0.312, allocations: 0.6529 MB / 400.9 MB, free: 22.04 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.689e-05/0.3121, allocations: 29.7 kB / 400.9 MB, free: 22 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003782/0.3125, allocations: 0.6798 MB / 401.6 MB, free: 21.31 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.985e-05/0.3126, allocations: 118.4 kB / 401.7 MB, free: 21.19 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.263e-05/0.3126, allocations: 16 kB / 401.7 MB, free: 21.18 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001371/0.3128, allocations: 390.7 kB / 402.1 MB, free: 20.79 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003533/0.3131, allocations: 145.9 kB / 402.3 MB, free: 20.64 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005229/0.3137, allocations: 0.5506 MB / 402.8 MB, free: 19.89 MB / 298.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: inverseCapacitor1.capacitor.v = $START.inverseCapacitor1.capacitor.v ($START.directCapacitor1.currentToVoltage.y = $START.inverseCapacitor1.capacitor.v) Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: inverseInductor3.inductor.i = $START.inverseInductor3.inductor.i ($START.directInductor3.currentToVoltage.y = $START.inverseInductor3.inductor.i) Notification: Performance of analyzeInitialSystem (initialization): time 0.00127/0.3149, allocations: 0.9626 MB / 403.8 MB, free: 18.7 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.027e-06/0.315, allocations: 4 kB / 403.8 MB, free: 18.69 MB / 298.7 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.00168/0.3167, allocations: 0.7967 MB / 404.6 MB, free: 17.88 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.244e-05/0.3167, allocations: 12 kB / 404.6 MB, free: 17.87 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.449e-05/0.3167, allocations: 12 kB / 404.6 MB, free: 17.86 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003303/0.3171, allocations: 82.27 kB / 404.7 MB, free: 17.77 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006743/0.3178, allocations: 195.7 kB / 404.9 MB, free: 17.58 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00179/0.3196, allocations: 2.973 MB / 407.8 MB, free: 14.35 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005145/0.3201, allocations: 35.98 kB / 407.9 MB, free: 14.31 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.894e-05/0.3202, allocations: 44.19 kB / 407.9 MB, free: 14.27 MB / 298.7 MB Warning: The initial conditions are over specified. The following 2 initial equations are redundant, so they are removed from the initialization sytem: inverseCapacitor1.capacitor.v = $START.inverseCapacitor1.capacitor.v inverseInductor3.inductor.i = $START.inverseInductor3.inductor.i. 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.0006019/0.3208, allocations: 276.4 kB / 408.2 MB, free: 13.99 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001669/0.321, allocations: 75.06 kB / 408.3 MB, free: 13.92 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001468/0.3211, allocations: 74.41 kB / 408.3 MB, free: 13.84 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.767e-06/0.3211, allocations: 8 kB / 408.4 MB, free: 13.84 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.335e-05/0.3212, allocations: 4 kB / 408.4 MB, free: 13.83 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.963e-06/0.3212, allocations: 0 / 408.4 MB, free: 13.83 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002371/0.3236, allocations: 1.255 MB / 409.6 MB, free: 12.5 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.771e-06/0.3236, allocations: 0 / 409.6 MB, free: 12.5 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005021/0.3241, allocations: 71.89 kB / 409.7 MB, free: 12.43 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002274/0.3243, allocations: 57.72 kB / 409.7 MB, free: 12.37 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.991e-05/0.3244, allocations: 8 kB / 409.7 MB, free: 12.36 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002063/0.3265, allocations: 2.775 MB / 412.5 MB, free: 9.316 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.015e-06/0.3265, allocations: 0 / 412.5 MB, free: 9.316 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001214/0.3277, allocations: 0.653 MB / 413.2 MB, free: 8.633 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001651/0.3279, allocations: 136.2 kB / 413.3 MB, free: 8.48 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001081/0.328, allocations: 16 kB / 413.3 MB, free: 8.465 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004269/0.3285, allocations: 19.98 kB / 413.3 MB, free: 8.445 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.553e-05/0.3286, allocations: 31.91 kB / 413.4 MB, free: 8.414 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.748e-05/0.3286, allocations: 8 kB / 413.4 MB, free: 8.406 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0007201/0.3293, allocations: 431 kB / 413.8 MB, free: 7.992 MB / 298.7 MB Notification: Performance of sort global known variables: time 3e-07/0.3293, allocations: 0 / 413.8 MB, free: 7.992 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001478/0.3308, allocations: 160 kB / 414 MB, free: 7.836 MB / 298.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.0001686/0.331, allocations: 107.2 kB / 414.1 MB, free: 7.723 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001498/0.3325, allocations: 0.6562 MB / 414.7 MB, free: 7.047 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 5.711e-06/0.3326, allocations: 8 kB / 414.7 MB, free: 7.039 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005737/0.3331, allocations: 365.3 kB / 415.1 MB, free: 6.656 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001066/0.3342, allocations: 71.42 kB / 415.2 MB, free: 6.582 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004222/0.3385, allocations: 2.379 MB / 417.5 MB, free: 4.156 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005913/0.3391, allocations: 1.03 MB / 418.6 MB, free: 3.098 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002106/0.3393, allocations: 63.42 kB / 418.6 MB, free: 3.035 MB / 298.7 MB Notification: Performance of SimCode: time 8.11e-07/0.3393, allocations: 0 / 418.6 MB, free: 3.035 MB / 298.7 MB Notification: Performance of Templates: time 0.03563/0.375, allocations: 19.34 MB / 438 MB, free: 15.68 MB / 330.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/jenkins/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