Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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 trunk/package.mo", uses=false) 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) 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_trunk_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_Modelica.Electrical.Analog.Examples.GenerationOfFMUs") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007483/0.0007484, allocations: 98.53 kB / 18.01 MB, free: 5.73 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008423/0.0008422, allocations: 206.5 kB / 18.94 MB, free: 4.844 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.301/1.301, allocations: 227.7 MB / 247.5 MB, free: 11.23 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002429/0.0002429, allocations: 8 kB / 308.4 MB, free: 0.8047 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09409/0.09435, allocations: 51.52 MB / 359.9 MB, free: 13.28 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.GenerationOfFMUs): time 0.005604/0.09999, allocations: 5.515 MB / 365.4 MB, free: 7.738 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003057/0.1031, allocations: 1.691 MB / 367.1 MB, free: 6.043 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008313/0.1039, allocations: 27.88 kB / 367.1 MB, free: 6.016 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005791/0.1045, allocations: 186.5 kB / 367.3 MB, free: 5.832 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007626/0.1053, allocations: 166.5 kB / 367.5 MB, free: 5.668 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001086/0.1064, allocations: 463.5 kB / 367.9 MB, free: 5.215 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001568/0.108, allocations: 1.305 MB / 369.2 MB, free: 3.902 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008211/0.1088, allocations: 0.5374 MB / 369.8 MB, free: 3.348 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000643/0.1095, allocations: 374.1 kB / 370.1 MB, free: 2.98 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005165/0.11, allocations: 413.4 kB / 370.6 MB, free: 2.574 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001111/0.1101, allocations: 48 kB / 370.6 MB, free: 2.527 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002018/0.1103, allocations: 67.94 kB / 370.7 MB, free: 2.461 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001479/0.1105, allocations: 191 kB / 370.9 MB, free: 2.273 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005064/0.111, allocations: 0.5414 MB / 371.4 MB, free: 1.723 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009095/0.1119, allocations: 1.165 MB / 372.6 MB, free: 0.5547 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.1119, allocations: 0 / 372.6 MB, free: 0.5547 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.1119, allocations: 0 / 372.6 MB, free: 0.5547 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.858e-05/0.112, allocations: 0 / 372.6 MB, free: 0.5547 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.1671/0.2791, allocations: 1.234 MB / 373.8 MB, free: 18.8 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.243e-05/0.2792, allocations: 9.016 kB / 373.8 MB, free: 18.8 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007314/0.2799, allocations: 164.1 kB / 374 MB, free: 18.73 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001497/0.2815, allocations: 0.7263 MB / 374.7 MB, free: 18.41 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000103/0.2816, allocations: 90.31 kB / 374.8 MB, free: 18.41 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002541/0.2818, allocations: 118.1 kB / 374.9 MB, free: 18.41 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002996/0.2849, allocations: 1.268 MB / 376.2 MB, free: 17.93 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.755e-05/0.2849, allocations: 7.734 kB / 376.2 MB, free: 17.93 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001518/0.2851, allocations: 56.75 kB / 376.2 MB, free: 17.93 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.473e-05/0.2852, allocations: 31.5 kB / 376.3 MB, free: 17.93 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001895/0.2871, allocations: 0.7014 MB / 377 MB, free: 17.7 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005825/0.2929, allocations: 6.832 MB / 383.8 MB, free: 12.02 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006681/0.2936, allocations: 274.7 kB / 384.1 MB, free: 11.89 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003602/0.294, allocations: 182 kB / 384.2 MB, free: 11.82 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001391/0.2941, allocations: 84.38 kB / 384.3 MB, free: 11.73 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.179e-05/0.2941, allocations: 40.41 kB / 384.4 MB, free: 11.68 MB / 302.1 MB Notification: Performance of pre-optimization done (n=27): time 2.735e-06/0.2942, allocations: 0 / 384.4 MB, free: 11.68 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.002395/0.2966, allocations: 1.414 MB / 385.8 MB, free: 10.65 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.168e-05/0.2966, allocations: 85.14 kB / 385.9 MB, free: 10.55 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007532/0.2974, allocations: 0.661 MB / 386.5 MB, free: 10.26 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.409e-05/0.2974, allocations: 32.55 kB / 386.5 MB, free: 10.22 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003463/0.2977, allocations: 0.6914 MB / 387.2 MB, free: 9.68 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.568e-05/0.2978, allocations: 113.2 kB / 387.3 MB, free: 9.598 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.311e-05/0.2979, allocations: 64.59 kB / 387.4 MB, free: 9.559 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001116/0.298, allocations: 390.9 kB / 387.8 MB, free: 9.207 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002817/0.2983, allocations: 148.4 kB / 387.9 MB, free: 9.16 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004301/0.2987, allocations: 0.5515 MB / 388.5 MB, free: 8.555 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.0009471/0.2997, allocations: 0.9856 MB / 389.5 MB, free: 7.602 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.183e-06/0.2997, allocations: 4.5 kB / 389.5 MB, free: 7.602 MB / 302.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001213/0.3009, allocations: 0.7955 MB / 390.3 MB, free: 7.246 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.464e-05/0.301, allocations: 11.81 kB / 390.3 MB, free: 7.246 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.017e-05/0.301, allocations: 14.06 kB / 390.3 MB, free: 7.246 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002417/0.3012, allocations: 86.97 kB / 390.4 MB, free: 7.211 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005487/0.3018, allocations: 179.8 kB / 390.6 MB, free: 7.195 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001799/0.3036, allocations: 2.986 MB / 393.5 MB, free: 4.285 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003755/0.304, allocations: 34.52 kB / 393.6 MB, free: 4.273 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.122e-05/0.3041, allocations: 47.12 kB / 393.6 MB, free: 4.262 MB / 302.1 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 (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.0003547/0.3044, allocations: 273.9 kB / 393.9 MB, free: 4.047 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001037/0.3045, allocations: 78.28 kB / 394 MB, free: 4.004 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001135/0.3046, allocations: 71.72 kB / 394 MB, free: 3.961 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.25e-06/0.3047, allocations: 7.734 kB / 394 MB, free: 3.957 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.979e-06/0.3047, allocations: 2.156 kB / 394 MB, free: 3.957 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.991e-06/0.3047, allocations: 5.344 kB / 394.1 MB, free: 3.953 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001817/0.3065, allocations: 1.261 MB / 395.3 MB, free: 3.215 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.507e-06/0.3065, allocations: 2.5 kB / 395.3 MB, free: 3.215 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003009/0.3068, allocations: 65.67 kB / 395.4 MB, free: 3.211 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001438/0.307, allocations: 57.11 kB / 395.4 MB, free: 3.184 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.29e-05/0.307, allocations: 8.359 kB / 395.4 MB, free: 3.18 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001424/0.3084, allocations: 2.783 MB / 398.2 MB, free: 408 kB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.326e-06/0.3085, allocations: 6.125 kB / 398.2 MB, free: 404 kB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008843/0.3094, allocations: 0.6512 MB / 398.9 MB, free: 0 / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001529/0.3095, allocations: 143.1 kB / 399 MB, free: 15.86 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.261e-05/0.3096, allocations: 8.609 kB / 399 MB, free: 15.86 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002533/0.3098, allocations: 18.75 kB / 399.1 MB, free: 15.85 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.765e-05/0.3099, allocations: 23.61 kB / 399.1 MB, free: 15.85 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.031e-05/0.31, allocations: 11.98 kB / 399.1 MB, free: 15.84 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0005837/0.3106, allocations: 443.7 kB / 399.5 MB, free: 15.65 MB / 318.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3106, allocations: 0 / 399.5 MB, free: 15.65 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001002/0.3116, allocations: 159.8 kB / 399.7 MB, free: 15.63 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.0002/0.3118, allocations: 102.7 kB / 399.8 MB, free: 15.54 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001332/0.3131, allocations: 0.6667 MB / 400.4 MB, free: 15.16 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.137e-06/0.3131, allocations: 0.9375 kB / 400.4 MB, free: 15.16 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005351/0.3137, allocations: 361.6 kB / 400.8 MB, free: 14.89 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000671/0.3144, allocations: 76.38 kB / 400.9 MB, free: 14.85 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003645/0.318, allocations: 2.49 MB / 403.4 MB, free: 13.1 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006357/0.3187, allocations: 1.04 MB / 404.4 MB, free: 12.25 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001287/0.3188, allocations: 60.8 kB / 404.5 MB, free: 12.23 MB / 318.1 MB Notification: Performance of SimCode: time 3.4e-07/0.3188, allocations: 0 / 404.5 MB, free: 12.23 MB / 318.1 MB Notification: Performance of Templates: time 0.0237/0.3425, allocations: 19.42 MB / 423.9 MB, free: 11.37 MB / 334.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.GenerationOfFMUs -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches