Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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.1.0-beta.om_Modelica.Electrical.Analog.Examples.GenerationOfFMUs") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.002428/0.002428, allocations: 114 kB / 17.83 MB, free: 5.207 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002842/0.002842, allocations: 205.9 kB / 18.78 MB, free: 4.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.588/1.588, allocations: 230.4 MB / 250 MB, free: 9.105 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001977/0.001977, allocations: 67.83 kB / 367.4 MB, free: 7.055 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3046/0.3066, allocations: 53.32 MB / 420.7 MB, free: 8.367 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.GenerationOfFMUs): time 0.008109/0.3147, allocations: 6.035 MB / 426.7 MB, free: 2.309 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004051/0.3188, allocations: 1.745 MB / 428.5 MB, free: 0.5586 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001016/0.3198, allocations: 27.88 kB / 428.5 MB, free: 0.5312 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008247/0.3206, allocations: 253.5 kB / 428.7 MB, free: 288 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008716/0.3215, allocations: 217.8 kB / 428.9 MB, free: 68 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001215/0.3227, allocations: 0.511 MB / 429.5 MB, free: 15.55 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001765/0.3245, allocations: 1.395 MB / 430.9 MB, free: 14.15 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007578/0.3252, allocations: 459.8 kB / 431.3 MB, free: 13.68 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000705/0.3259, allocations: 482.1 kB / 431.8 MB, free: 13.2 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006007/0.3265, allocations: 0.4895 MB / 432.3 MB, free: 12.71 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001736/0.3267, allocations: 120 kB / 432.4 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002569/0.327, allocations: 144 kB / 432.5 MB, free: 12.45 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002278/0.3272, allocations: 267 kB / 432.8 MB, free: 12.19 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006278/0.3278, allocations: 0.61 MB / 433.4 MB, free: 11.58 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002137/0.33, allocations: 1.637 MB / 435 MB, free: 9.938 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.191e-06/0.33, allocations: 0 / 435 MB, free: 9.938 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.504e-06/0.33, allocations: 4 kB / 435 MB, free: 9.934 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.123e-05/0.33, allocations: 3.938 kB / 435 MB, free: 9.93 MB / 350.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.002454/0.3324, allocations: 1.496 MB / 436.5 MB, free: 8.379 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.566e-05/0.3325, allocations: 12.03 kB / 436.5 MB, free: 8.367 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004879/0.333, allocations: 167 kB / 436.7 MB, free: 8.203 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001432/0.3344, allocations: 0.7594 MB / 437.5 MB, free: 7.398 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.553e-05/0.3345, allocations: 98.34 kB / 437.6 MB, free: 7.301 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001728/0.3347, allocations: 123.9 kB / 437.7 MB, free: 7.18 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002113/0.3368, allocations: 1.26 MB / 438.9 MB, free: 5.75 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.769e-05/0.3368, allocations: 7.938 kB / 439 MB, free: 5.742 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.553e-05/0.3369, allocations: 56 kB / 439 MB, free: 5.688 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.343e-05/0.337, allocations: 32 kB / 439 MB, free: 5.656 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001401/0.3384, allocations: 0.6851 MB / 439.7 MB, free: 4.973 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006721/0.3451, allocations: 6.802 MB / 446.5 MB, free: 13.84 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006988/0.3458, allocations: 249.2 kB / 446.8 MB, free: 13.57 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003782/0.3462, allocations: 165.7 kB / 446.9 MB, free: 13.41 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001311/0.3463, allocations: 81.11 kB / 447 MB, free: 13.31 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.687e-05/0.3463, allocations: 38.56 kB / 447 MB, free: 13.26 MB / 366.1 MB Notification: Performance of pre-optimization done (n=27): time 2.053e-06/0.3463, allocations: 0 / 447 MB, free: 13.26 MB / 366.1 MB Notification: Performance of matching and sorting (n=29): time 0.002883/0.3492, allocations: 1.425 MB / 448.5 MB, free: 11.73 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.894e-05/0.3493, allocations: 81.05 kB / 448.6 MB, free: 11.63 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008966/0.3502, allocations: 0.6726 MB / 449.2 MB, free: 10.95 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.743e-05/0.3502, allocations: 33.7 kB / 449.3 MB, free: 10.91 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005524/0.3508, allocations: 0.7016 MB / 450 MB, free: 10.2 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001176/0.3509, allocations: 119.1 kB / 450.1 MB, free: 10.09 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002044/0.3511, allocations: 142.6 kB / 450.2 MB, free: 9.938 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002073/0.3513, allocations: 382.8 kB / 450.6 MB, free: 9.555 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002973/0.3516, allocations: 145.9 kB / 450.7 MB, free: 9.414 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006179/0.3522, allocations: 0.5546 MB / 451.3 MB, free: 8.656 MB / 366.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.001267/0.3535, allocations: 0.9567 MB / 452.2 MB, free: 7.469 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.572e-06/0.3535, allocations: 4 kB / 452.2 MB, free: 7.465 MB / 366.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001433/0.3549, allocations: 0.7955 MB / 453 MB, free: 6.656 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.548e-05/0.3549, allocations: 15.94 kB / 453.1 MB, free: 6.641 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.02e-05/0.3549, allocations: 12 kB / 453.1 MB, free: 6.629 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002656/0.3552, allocations: 81.91 kB / 453.1 MB, free: 6.543 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005608/0.3558, allocations: 180.2 kB / 453.3 MB, free: 6.367 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002994/0.3588, allocations: 3.332 MB / 456.7 MB, free: 2.758 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004775/0.3592, allocations: 32 kB / 456.7 MB, free: 2.727 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.188e-05/0.3593, allocations: 44 kB / 456.7 MB, free: 2.684 MB / 366.1 MB Warning: The initial conditions are over specified. The following 2 initial equations are redundant, so they are removed from the initialization system: 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.0004883/0.3598, allocations: 274.5 kB / 457 MB, free: 2.406 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001433/0.3599, allocations: 79.48 kB / 457.1 MB, free: 2.328 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001359/0.3601, allocations: 78.33 kB / 457.2 MB, free: 2.25 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.248e-06/0.3601, allocations: 8.062 kB / 457.2 MB, free: 2.242 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.317e-05/0.3601, allocations: 0 / 457.2 MB, free: 2.242 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.322e-06/0.3601, allocations: 4 kB / 457.2 MB, free: 2.238 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001999/0.3621, allocations: 1.257 MB / 458.4 MB, free: 0.9102 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.394e-06/0.3621, allocations: 4 kB / 458.4 MB, free: 0.9062 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003342/0.3624, allocations: 63.89 kB / 458.5 MB, free: 0.8438 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001893/0.3626, allocations: 57.62 kB / 458.5 MB, free: 0.7812 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.749e-05/0.3627, allocations: 8 kB / 458.6 MB, free: 0.7734 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002492/0.3652, allocations: 3.057 MB / 461.6 MB, free: 13.44 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.3652, allocations: 0 / 461.6 MB, free: 13.44 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009815/0.3661, allocations: 0.6316 MB / 462.2 MB, free: 12.77 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001681/0.3663, allocations: 148.6 kB / 462.4 MB, free: 12.61 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.517e-05/0.3664, allocations: 8.062 kB / 462.4 MB, free: 12.6 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002597/0.3666, allocations: 15.98 kB / 462.4 MB, free: 12.58 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.231e-05/0.3667, allocations: 27.84 kB / 462.4 MB, free: 12.55 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.213e-05/0.3667, allocations: 12 kB / 462.4 MB, free: 12.54 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006961/0.3674, allocations: 439 kB / 462.9 MB, free: 12.12 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3674, allocations: 8 kB / 462.9 MB, free: 12.11 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009282/0.3684, allocations: 152 kB / 463 MB, free: 11.96 MB / 382.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.000177/0.3685, allocations: 111.3 kB / 463.1 MB, free: 11.84 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00121/0.3697, allocations: 0.6331 MB / 463.8 MB, free: 11.19 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.26e-06/0.3697, allocations: 4 kB / 463.8 MB, free: 11.18 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005122/0.3703, allocations: 353.1 kB / 464.1 MB, free: 10.81 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005426/0.3708, allocations: 74.27 kB / 464.2 MB, free: 10.75 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003394/0.3742, allocations: 1.866 MB / 466.1 MB, free: 8.836 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007351/0.3749, allocations: 1.031 MB / 467.1 MB, free: 7.777 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002885/0.3752, allocations: 86.02 kB / 467.2 MB, free: 7.691 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001234/0.3753, allocations: 59.41 kB / 467.2 MB, free: 7.633 MB / 382.1 MB Notification: Performance of SimCode: time 1.383e-06/0.3753, allocations: 0 / 467.2 MB, free: 7.633 MB / 382.1 MB Notification: Performance of Templates: time 0.0133/0.3886, allocations: 5.669 MB / 472.9 MB, free: 2 MB / 382.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.GenerationOfFMUs -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches