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.001717/0.001718, allocations: 113.7 kB / 18.45 MB, free: 4.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002334/0.002334, allocations: 212.9 kB / 19.4 MB, free: 3.699 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.434/2.434, allocations: 227.4 MB / 247.6 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002217/0.002218, allocations: 59.91 kB / 359.4 MB, free: 12.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4966/0.4988, allocations: 50.54 MB / 409.9 MB, free: 1.777 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.GenerationOfFMUs): time 0.01273/0.5116, allocations: 6.008 MB / 416 MB, free: 11.74 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005982/0.5177, allocations: 1.741 MB / 417.7 MB, free: 9.992 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001676/0.5194, allocations: 31.81 kB / 417.7 MB, free: 9.961 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001396/0.5208, allocations: 249.6 kB / 418 MB, free: 9.715 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001623/0.5225, allocations: 213.7 kB / 418.2 MB, free: 9.504 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002729/0.5253, allocations: 0.5149 MB / 418.7 MB, free: 8.988 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003608/0.529, allocations: 1.399 MB / 420.1 MB, free: 7.578 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001692/0.5307, allocations: 0.6286 MB / 420.7 MB, free: 6.926 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001312/0.532, allocations: 486.1 kB / 421.2 MB, free: 6.449 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001064/0.5331, allocations: 0.4934 MB / 421.7 MB, free: 5.953 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002837/0.5334, allocations: 120 kB / 421.8 MB, free: 5.836 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004425/0.5339, allocations: 143.9 kB / 422 MB, free: 5.695 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003353/0.5343, allocations: 267 kB / 422.2 MB, free: 5.434 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009246/0.5352, allocations: 0.61 MB / 422.8 MB, free: 4.82 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002705/0.5379, allocations: 1.624 MB / 424.4 MB, free: 3.191 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.275e-06/0.538, allocations: 0 / 424.4 MB, free: 3.191 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.575e-06/0.538, allocations: 0 / 424.4 MB, free: 3.191 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.13e-05/0.5381, allocations: 0 / 424.4 MB, free: 3.191 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.00367/0.5417, allocations: 1.47 MB / 425.9 MB, free: 1.668 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.999e-05/0.5418, allocations: 8.031 kB / 425.9 MB, free: 1.66 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006717/0.5425, allocations: 170.2 kB / 426.1 MB, free: 1.492 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002062/0.5446, allocations: 0.7589 MB / 426.8 MB, free: 0.6875 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001178/0.5447, allocations: 90.41 kB / 426.9 MB, free: 0.5977 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000255/0.545, allocations: 123.9 kB / 427.1 MB, free: 488 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003433/0.5485, allocations: 1.264 MB / 428.3 MB, free: 15.04 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.153e-05/0.5486, allocations: 7.938 kB / 428.3 MB, free: 15.03 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001567/0.5487, allocations: 52 kB / 428.4 MB, free: 14.98 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.713e-05/0.5488, allocations: 32 kB / 428.4 MB, free: 14.95 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002425/0.5512, allocations: 0.689 MB / 429.1 MB, free: 14.26 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01103/0.5623, allocations: 6.773 MB / 435.9 MB, free: 7.156 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00121/0.5635, allocations: 257.2 kB / 436.1 MB, free: 6.887 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006562/0.5642, allocations: 190.2 kB / 436.3 MB, free: 6.695 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001831/0.5644, allocations: 89.05 kB / 436.4 MB, free: 6.59 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.933e-05/0.5645, allocations: 42.55 kB / 436.4 MB, free: 6.539 MB / 350.1 MB Notification: Performance of pre-optimization done (n=27): time 3.968e-06/0.5645, allocations: 0 / 436.4 MB, free: 6.539 MB / 350.1 MB Notification: Performance of matching and sorting (n=29): time 0.004402/0.5689, allocations: 1.398 MB / 437.8 MB, free: 5.031 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.687e-05/0.5691, allocations: 81.09 kB / 437.9 MB, free: 4.934 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001394/0.5705, allocations: 0.657 MB / 438.6 MB, free: 4.27 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.228e-05/0.5705, allocations: 33.7 kB / 438.6 MB, free: 4.23 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007513/0.5713, allocations: 0.6914 MB / 439.3 MB, free: 3.527 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001438/0.5715, allocations: 114.5 kB / 439.4 MB, free: 3.414 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003048/0.5718, allocations: 150.4 kB / 439.6 MB, free: 3.258 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002528/0.5721, allocations: 386.8 kB / 439.9 MB, free: 2.871 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005247/0.5726, allocations: 141.9 kB / 440.1 MB, free: 2.734 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009571/0.5736, allocations: 0.5506 MB / 440.6 MB, free: 1.98 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.002023/0.5756, allocations: 0.9574 MB / 441.6 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.448e-05/0.5757, allocations: 8 kB / 441.6 MB, free: 0.7812 MB / 350.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.002523/0.5782, allocations: 0.7939 MB / 442.4 MB, free: 15.97 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.686e-05/0.5783, allocations: 12 kB / 442.4 MB, free: 15.96 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.32e-05/0.5783, allocations: 16 kB / 442.4 MB, free: 15.95 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005002/0.5788, allocations: 85.56 kB / 442.5 MB, free: 15.86 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001074/0.5799, allocations: 183.7 kB / 442.7 MB, free: 15.68 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0043/0.5843, allocations: 3.321 MB / 446 MB, free: 12.08 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008895/0.5852, allocations: 32 kB / 446 MB, free: 12.05 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.756e-05/0.5853, allocations: 44 kB / 446.1 MB, free: 12.01 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.0007582/0.5861, allocations: 273.4 kB / 446.3 MB, free: 11.73 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002344/0.5863, allocations: 71.06 kB / 446.4 MB, free: 11.66 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002153/0.5866, allocations: 78.41 kB / 446.5 MB, free: 11.58 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.462e-06/0.5866, allocations: 0 / 446.5 MB, free: 11.58 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.305e-05/0.5866, allocations: 8.062 kB / 446.5 MB, free: 11.57 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.267e-06/0.5866, allocations: 0 / 446.5 MB, free: 11.57 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00358/0.5902, allocations: 1.251 MB / 447.7 MB, free: 10.25 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.222e-06/0.5903, allocations: 0 / 447.7 MB, free: 10.25 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005893/0.5909, allocations: 67.89 kB / 447.8 MB, free: 10.19 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003467/0.5912, allocations: 53.69 kB / 447.9 MB, free: 10.13 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.058e-05/0.5913, allocations: 11.98 kB / 447.9 MB, free: 10.12 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004162/0.5955, allocations: 3.066 MB / 450.9 MB, free: 6.773 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.938e-06/0.5955, allocations: 0 / 450.9 MB, free: 6.773 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001659/0.5972, allocations: 0.6311 MB / 451.6 MB, free: 6.105 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003035/0.5975, allocations: 140.2 kB / 451.7 MB, free: 5.949 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.183e-05/0.5977, allocations: 12.06 kB / 451.7 MB, free: 5.938 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004886/0.5982, allocations: 15.98 kB / 451.7 MB, free: 5.922 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001322/0.5983, allocations: 31.91 kB / 451.8 MB, free: 5.891 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.157e-05/0.5984, allocations: 8 kB / 451.8 MB, free: 5.883 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0009576/0.5993, allocations: 443 kB / 452.2 MB, free: 5.453 MB / 366.1 MB Notification: Performance of sort global known variables: time 4.41e-07/0.5994, allocations: 0 / 452.2 MB, free: 5.453 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001755/0.6011, allocations: 156 kB / 452.4 MB, free: 5.301 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.000226/0.6014, allocations: 118.4 kB / 452.5 MB, free: 5.18 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002015/0.6034, allocations: 0.6528 MB / 453.1 MB, free: 4.504 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 7.895e-06/0.6035, allocations: 4 kB / 453.1 MB, free: 4.5 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008855/0.6044, allocations: 361.1 kB / 453.5 MB, free: 4.121 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001036/0.6054, allocations: 79.55 kB / 453.6 MB, free: 4.047 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00542/0.6109, allocations: 1.863 MB / 455.4 MB, free: 2.133 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001038/0.6119, allocations: 1.031 MB / 456.5 MB, free: 1.074 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002928/0.6123, allocations: 63.41 kB / 456.5 MB, free: 1.012 MB / 366.1 MB Notification: Performance of SimCode: time 1.032e-06/0.6123, allocations: 0 / 456.5 MB, free: 1.012 MB / 366.1 MB Notification: Performance of Templates: time 0.04108/0.6534, allocations: 19.84 MB / 476.4 MB, free: 13.16 MB / 398.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