Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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_4.0.0_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_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008711/0.0008711, allocations: 91 kB / 17.31 MB, free: 6.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001075/0.001075, allocations: 178.2 kB / 18.21 MB, free: 5.676 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.269/1.269, allocations: 223.3 MB / 242.3 MB, free: 14.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002221/0.0002221, allocations: 4.141 kB / 302.1 MB, free: 5.891 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07211/0.07235, allocations: 50.41 MB / 352.5 MB, free: 3.469 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.GenerationOfFMUs): time 0.005126/0.07751, allocations: 5.485 MB / 358 MB, free: 13.95 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002026/0.07955, allocations: 1.605 MB / 359.6 MB, free: 12.34 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000325/0.07988, allocations: 31.81 kB / 359.6 MB, free: 12.31 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003242/0.08022, allocations: 186.5 kB / 359.8 MB, free: 12.13 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003687/0.0806, allocations: 170.4 kB / 360 MB, free: 11.96 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007132/0.08132, allocations: 447.6 kB / 360.4 MB, free: 11.52 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001062/0.08239, allocations: 1.29 MB / 361.7 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006802/0.08308, allocations: 0.5452 MB / 362.2 MB, free: 9.656 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003383/0.08343, allocations: 370.1 kB / 362.6 MB, free: 9.293 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003683/0.08381, allocations: 421.3 kB / 363 MB, free: 8.879 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.189e-05/0.0839, allocations: 48 kB / 363.1 MB, free: 8.832 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001421/0.08405, allocations: 67.98 kB / 363.1 MB, free: 8.766 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001295/0.08418, allocations: 179.1 kB / 363.3 MB, free: 8.59 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003718/0.08456, allocations: 0.5374 MB / 363.8 MB, free: 8.043 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008374/0.08541, allocations: 1.161 MB / 365 MB, free: 6.879 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.036e-06/0.08542, allocations: 0 / 365 MB, free: 6.879 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.08543, allocations: 0 / 365 MB, free: 6.879 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.064e-05/0.08545, allocations: 4 kB / 365 MB, free: 6.875 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.001598/0.08705, allocations: 1.24 MB / 366.2 MB, free: 5.582 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.982e-05/0.08709, allocations: 8.031 kB / 366.3 MB, free: 5.574 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001673/0.08726, allocations: 142.3 kB / 366.4 MB, free: 5.434 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008959/0.08816, allocations: 0.7198 MB / 367.1 MB, free: 4.672 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.49e-05/0.08824, allocations: 90.41 kB / 367.2 MB, free: 4.582 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001384/0.08838, allocations: 123.9 kB / 367.3 MB, free: 4.461 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001793/0.09018, allocations: 1.272 MB / 368.6 MB, free: 3.02 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.973e-05/0.09022, allocations: 3.938 kB / 368.6 MB, free: 3.016 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.923e-05/0.09032, allocations: 52 kB / 368.6 MB, free: 2.965 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.538e-05/0.09035, allocations: 32 kB / 368.7 MB, free: 2.934 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00126/0.09162, allocations: 0.6969 MB / 369.4 MB, free: 2.234 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1361/0.2278, allocations: 6.819 MB / 376.2 MB, free: 19.48 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006442/0.2284, allocations: 277.6 kB / 376.5 MB, free: 19.43 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003363/0.2288, allocations: 180.6 kB / 376.6 MB, free: 19.42 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001214/0.2289, allocations: 84.39 kB / 376.7 MB, free: 19.32 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.625e-05/0.2289, allocations: 41.16 kB / 376.8 MB, free: 19.28 MB / 302.1 MB Notification: Performance of pre-optimization done (n=27): time 1.994e-06/0.229, allocations: 0 / 376.8 MB, free: 19.28 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.002113/0.2311, allocations: 1.411 MB / 378.2 MB, free: 18.43 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.631e-05/0.2311, allocations: 85.2 kB / 378.3 MB, free: 18.34 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006895/0.2318, allocations: 0.6613 MB / 378.9 MB, free: 18.06 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.07e-05/0.2318, allocations: 31.11 kB / 378.9 MB, free: 18.02 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002775/0.2321, allocations: 0.6832 MB / 379.6 MB, free: 17.49 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.501e-05/0.2322, allocations: 121.8 kB / 379.8 MB, free: 17.4 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.81e-05/0.2323, allocations: 63.56 kB / 379.8 MB, free: 17.36 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.776e-05/0.2324, allocations: 384.7 kB / 380.2 MB, free: 17.02 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002745/0.2326, allocations: 150.6 kB / 380.3 MB, free: 16.96 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003693/0.233, allocations: 0.5524 MB / 380.9 MB, free: 16.36 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.000836/0.2339, allocations: 0.9779 MB / 381.9 MB, free: 15.41 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.853e-06/0.2339, allocations: 4.125 kB / 381.9 MB, free: 15.41 MB / 302.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001146/0.235, allocations: 0.7997 MB / 382.7 MB, free: 15.05 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.118e-05/0.2351, allocations: 11.03 kB / 382.7 MB, free: 15.05 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.827e-05/0.2351, allocations: 18.75 kB / 382.7 MB, free: 15.05 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002189/0.2353, allocations: 82.56 kB / 382.8 MB, free: 15.02 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005234/0.2358, allocations: 183.5 kB / 383 MB, free: 15 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001617/0.2375, allocations: 2.987 MB / 385.9 MB, free: 12.09 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003678/0.2379, allocations: 33.62 kB / 386 MB, free: 12.08 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.515e-05/0.2379, allocations: 43.98 kB / 386 MB, free: 12.07 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.0002911/0.2382, allocations: 268.9 kB / 386.3 MB, free: 11.86 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.688e-05/0.2383, allocations: 74.16 kB / 386.4 MB, free: 11.82 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001114/0.2384, allocations: 74.69 kB / 386.4 MB, free: 11.78 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.656e-06/0.2384, allocations: 8.125 kB / 386.4 MB, free: 11.78 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.089e-06/0.2384, allocations: 1.219 kB / 386.4 MB, free: 11.78 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.47e-06/0.2385, allocations: 1.406 kB / 386.4 MB, free: 11.78 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001642/0.2401, allocations: 1.265 MB / 387.7 MB, free: 11.04 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.086e-06/0.2401, allocations: 1 kB / 387.7 MB, free: 11.04 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003169/0.2404, allocations: 62.66 kB / 387.8 MB, free: 11.04 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000148/0.2406, allocations: 60.92 kB / 387.8 MB, free: 11.01 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.308e-05/0.2406, allocations: 16.64 kB / 387.8 MB, free: 11 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001325/0.242, allocations: 2.768 MB / 390.6 MB, free: 8.234 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/0.242, allocations: 5.453 kB / 390.6 MB, free: 8.23 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007732/0.2428, allocations: 0.6465 MB / 391.3 MB, free: 7.809 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8e-05/0.2429, allocations: 140.3 kB / 391.4 MB, free: 7.672 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.386e-05/0.2429, allocations: 7.859 kB / 391.4 MB, free: 7.668 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002723/0.2432, allocations: 22.81 kB / 391.4 MB, free: 7.66 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.464e-05/0.2433, allocations: 24.36 kB / 391.5 MB, free: 7.656 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.935e-05/0.2433, allocations: 7.812 kB / 391.5 MB, free: 7.656 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004837/0.2438, allocations: 441.3 kB / 391.9 MB, free: 7.461 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.2438, allocations: 0 / 391.9 MB, free: 7.461 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008128/0.2446, allocations: 155.4 kB / 392 MB, free: 7.445 MB / 302.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 9.42e-05/0.2447, allocations: 114.9 kB / 392.2 MB, free: 7.348 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009193/0.2456, allocations: 0.6665 MB / 392.8 MB, free: 6.969 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.2456, allocations: 4 kB / 392.8 MB, free: 6.965 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000401/0.2461, allocations: 359.5 kB / 393.2 MB, free: 6.699 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006314/0.2467, allocations: 87.2 kB / 393.3 MB, free: 6.648 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002747/0.2495, allocations: 2.476 MB / 395.7 MB, free: 4.984 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005121/0.25, allocations: 1.044 MB / 396.8 MB, free: 4.258 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000129/0.2501, allocations: 61.03 kB / 396.8 MB, free: 4.246 MB / 302.1 MB Notification: Performance of SimCode: time 2.6e-07/0.2501, allocations: 0 / 396.8 MB, free: 4.246 MB / 302.1 MB Notification: Performance of Templates: time 0.01932/0.2694, allocations: 19.35 MB / 416.2 MB, free: 5.91 MB / 318.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches