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.001336/0.001336, allocations: 118.1 kB / 17.79 MB, free: 5.305 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001704/0.001704, allocations: 197.2 kB / 18.73 MB, free: 4.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.637/1.637, allocations: 227.4 MB / 246.9 MB, free: 10.51 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001203/0.001203, allocations: 55.91 kB / 358.7 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3663/0.3675, allocations: 50.53 MB / 409.3 MB, free: 1.617 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.GenerationOfFMUs): time 0.00846/0.3761, allocations: 6.023 MB / 415.3 MB, free: 11.57 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004398/0.3805, allocations: 1.733 MB / 417 MB, free: 9.828 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008156/0.3814, allocations: 35.81 kB / 417 MB, free: 9.793 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007026/0.3821, allocations: 245.6 kB / 417.3 MB, free: 9.551 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006054/0.3827, allocations: 217.7 kB / 417.5 MB, free: 9.336 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001282/0.384, allocations: 0.5227 MB / 418 MB, free: 8.812 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001432/0.3855, allocations: 1.391 MB / 419.4 MB, free: 7.41 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008835/0.3864, allocations: 0.6169 MB / 420 MB, free: 6.77 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006539/0.387, allocations: 494.1 kB / 420.5 MB, free: 6.285 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005408/0.3876, allocations: 0.4934 MB / 421 MB, free: 5.789 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001712/0.3878, allocations: 120 kB / 421.1 MB, free: 5.672 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002813/0.3881, allocations: 139.9 kB / 421.3 MB, free: 5.535 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002297/0.3883, allocations: 267 kB / 421.5 MB, free: 5.273 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005287/0.3888, allocations: 0.6177 MB / 422.1 MB, free: 4.652 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001679/0.3905, allocations: 1.616 MB / 423.8 MB, free: 3.035 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.295e-06/0.3905, allocations: 0 / 423.8 MB, free: 3.035 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.216e-06/0.3905, allocations: 3.938 kB / 423.8 MB, free: 3.031 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.716e-05/0.3906, allocations: 0 / 423.8 MB, free: 3.031 MB / 334.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.002294/0.3929, allocations: 1.466 MB / 425.2 MB, free: 1.512 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.538e-05/0.3929, allocations: 12.03 kB / 425.2 MB, free: 1.5 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005183/0.3935, allocations: 162.2 kB / 425.4 MB, free: 1.34 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001216/0.3947, allocations: 0.7627 MB / 426.2 MB, free: 0.5312 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.375e-05/0.3948, allocations: 90.41 kB / 426.2 MB, free: 452 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001551/0.3949, allocations: 123.9 kB / 426.4 MB, free: 328 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002007/0.397, allocations: 1.26 MB / 427.6 MB, free: 14.89 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.739e-05/0.397, allocations: 11.92 kB / 427.6 MB, free: 14.88 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.438e-05/0.3971, allocations: 52 kB / 427.7 MB, free: 14.82 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.037e-05/0.3972, allocations: 35.94 kB / 427.7 MB, free: 14.79 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001262/0.3984, allocations: 0.6852 MB / 428.4 MB, free: 14.11 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006669/0.4051, allocations: 6.785 MB / 435.2 MB, free: 6.988 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007236/0.4059, allocations: 261.6 kB / 435.4 MB, free: 6.715 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004315/0.4063, allocations: 189.6 kB / 435.6 MB, free: 6.527 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002605/0.4066, allocations: 81.11 kB / 435.7 MB, free: 6.43 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.847e-05/0.4067, allocations: 42.5 kB / 435.8 MB, free: 6.379 MB / 350.1 MB Notification: Performance of pre-optimization done (n=27): time 3.807e-06/0.4067, allocations: 0 / 435.8 MB, free: 6.379 MB / 350.1 MB Notification: Performance of matching and sorting (n=29): time 0.002893/0.4096, allocations: 1.402 MB / 437.2 MB, free: 4.867 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.182e-05/0.4097, allocations: 81.11 kB / 437.2 MB, free: 4.77 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008239/0.4105, allocations: 0.657 MB / 437.9 MB, free: 4.105 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.897e-05/0.4105, allocations: 29.7 kB / 437.9 MB, free: 4.07 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004724/0.411, allocations: 0.6953 MB / 438.6 MB, free: 3.363 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.032e-05/0.4111, allocations: 118.5 kB / 438.7 MB, free: 3.246 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002148/0.4113, allocations: 142.4 kB / 438.9 MB, free: 3.098 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001817/0.4115, allocations: 390.7 kB / 439.3 MB, free: 2.707 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002576/0.4118, allocations: 137.9 kB / 439.4 MB, free: 2.574 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000645/0.4124, allocations: 0.5506 MB / 439.9 MB, free: 1.82 MB / 350.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.001304/0.4137, allocations: 0.958 MB / 440.9 MB, free: 0.625 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.119e-05/0.4138, allocations: 4 kB / 440.9 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001366/0.4151, allocations: 0.8014 MB / 441.7 MB, free: 15.81 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.217e-05/0.4152, allocations: 12 kB / 441.7 MB, free: 15.8 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.956e-05/0.4153, allocations: 16 kB / 441.7 MB, free: 15.79 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003057/0.4156, allocations: 81.97 kB / 441.8 MB, free: 15.7 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005542/0.4161, allocations: 183.7 kB / 442 MB, free: 15.52 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00324/0.4194, allocations: 3.32 MB / 445.3 MB, free: 11.92 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004453/0.4199, allocations: 35.98 kB / 445.3 MB, free: 11.89 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.897e-05/0.4199, allocations: 40.19 kB / 445.4 MB, free: 11.85 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.0005039/0.4204, allocations: 273.4 kB / 445.7 MB, free: 11.57 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001275/0.4206, allocations: 79.05 kB / 445.7 MB, free: 11.49 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001239/0.4207, allocations: 70.42 kB / 445.8 MB, free: 11.42 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.791e-06/0.4207, allocations: 4 kB / 445.8 MB, free: 11.42 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.431e-05/0.4207, allocations: 8.047 kB / 445.8 MB, free: 11.41 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.41e-06/0.4207, allocations: 0 / 445.8 MB, free: 11.41 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002083/0.4228, allocations: 1.251 MB / 447.1 MB, free: 10.09 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.001e-05/0.4228, allocations: 4 kB / 447.1 MB, free: 10.08 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003098/0.4232, allocations: 63.84 kB / 447.1 MB, free: 10.02 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002207/0.4234, allocations: 57.67 kB / 447.2 MB, free: 9.957 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.331e-05/0.4234, allocations: 8 kB / 447.2 MB, free: 9.949 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003305/0.4267, allocations: 3.062 MB / 450.3 MB, free: 6.609 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.467e-06/0.4268, allocations: 0 / 450.3 MB, free: 6.609 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001018/0.4278, allocations: 0.6311 MB / 450.9 MB, free: 5.941 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001474/0.4279, allocations: 136.2 kB / 451 MB, free: 5.789 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.576e-05/0.428, allocations: 16.05 kB / 451 MB, free: 5.773 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002606/0.4283, allocations: 12 kB / 451 MB, free: 5.762 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001067/0.4284, allocations: 27.91 kB / 451.1 MB, free: 5.734 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.691e-05/0.4284, allocations: 15.98 kB / 451.1 MB, free: 5.719 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006285/0.4291, allocations: 431 kB / 451.5 MB, free: 5.301 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4291, allocations: 0 / 451.5 MB, free: 5.301 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001144/0.4302, allocations: 164 kB / 451.7 MB, free: 5.141 MB / 366.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.0002473/0.4305, allocations: 115 kB / 451.8 MB, free: 5.02 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001597/0.4321, allocations: 0.6488 MB / 452.4 MB, free: 4.348 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.402e-06/0.4321, allocations: 4.062 kB / 452.4 MB, free: 4.344 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006044/0.4327, allocations: 365.1 kB / 452.8 MB, free: 3.961 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006795/0.4334, allocations: 81.92 kB / 452.9 MB, free: 3.887 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004489/0.4379, allocations: 1.822 MB / 454.7 MB, free: 2.023 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00106/0.439, allocations: 1.031 MB / 455.7 MB, free: 0.9648 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004023/0.4394, allocations: 86.02 kB / 455.8 MB, free: 0.8789 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001371/0.4396, allocations: 55.42 kB / 455.9 MB, free: 0.8242 MB / 366.1 MB Notification: Performance of SimCode: time 1.693e-06/0.4396, allocations: 0 / 455.9 MB, free: 0.8242 MB / 366.1 MB Notification: Performance of Templates: time 0.01724/0.4568, allocations: 5.584 MB / 461.4 MB, free: 11.27 MB / 382.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches