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: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001104/0.001104, allocations: 118.8 kB / 17.79 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001288/0.001288, allocations: 202 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.466/1.466, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00131/0.00131, allocations: 55.91 kB / 358.2 MB, free: 13.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2819/0.2833, allocations: 50.54 MB / 408.8 MB, free: 1.508 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.GenerationOfFMUs): time 0.007183/0.2905, allocations: 6.023 MB / 414.8 MB, free: 11.46 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003756/0.2943, allocations: 1.733 MB / 416.5 MB, free: 9.719 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008958/0.2952, allocations: 27.88 kB / 416.6 MB, free: 9.691 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008236/0.2961, allocations: 245.6 kB / 416.8 MB, free: 9.449 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001228/0.2973, allocations: 221.7 kB / 417 MB, free: 9.23 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001469/0.2988, allocations: 0.5149 MB / 417.5 MB, free: 8.715 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001817/0.3007, allocations: 1.399 MB / 418.9 MB, free: 7.305 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009739/0.3017, allocations: 0.6208 MB / 419.5 MB, free: 6.66 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007926/0.3025, allocations: 478.1 kB / 420 MB, free: 6.191 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007335/0.3032, allocations: 0.4973 MB / 420.5 MB, free: 5.691 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002288/0.3035, allocations: 124 kB / 420.6 MB, free: 5.57 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000334/0.3038, allocations: 143.9 kB / 420.8 MB, free: 5.43 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002283/0.304, allocations: 263 kB / 421 MB, free: 5.172 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008264/0.3049, allocations: 0.6139 MB / 421.6 MB, free: 4.555 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001844/0.3067, allocations: 1.625 MB / 423.3 MB, free: 2.926 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.3068, allocations: 0 / 423.3 MB, free: 2.926 MB / 334.1 MB Notification: Performance of FrontEnd: time 4.098e-06/0.3068, allocations: 0 / 423.3 MB, free: 2.926 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.655e-05/0.3068, allocations: 3.938 kB / 423.3 MB, free: 2.922 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.002582/0.3094, allocations: 1.462 MB / 424.7 MB, free: 1.406 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.956e-05/0.3095, allocations: 8.031 kB / 424.7 MB, free: 1.398 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002424/0.3097, allocations: 189.6 kB / 424.9 MB, free: 1.203 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004475/0.3102, allocations: 162.2 kB / 425.1 MB, free: 1.043 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001282/0.3115, allocations: 0.755 MB / 425.8 MB, free: 248 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.327e-05/0.3116, allocations: 98.39 kB / 425.9 MB, free: 148 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001576/0.3118, allocations: 123.9 kB / 426.1 MB, free: 24 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002106/0.3139, allocations: 1.264 MB / 427.3 MB, free: 14.59 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.415e-05/0.3139, allocations: 7.938 kB / 427.3 MB, free: 14.58 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.408e-05/0.314, allocations: 56 kB / 427.4 MB, free: 14.52 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.988e-05/0.3141, allocations: 32 kB / 427.4 MB, free: 14.49 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001384/0.3155, allocations: 0.689 MB / 428.1 MB, free: 13.8 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006401/0.3219, allocations: 6.773 MB / 434.9 MB, free: 6.699 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007021/0.3226, allocations: 269.2 kB / 435.1 MB, free: 6.418 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003483/0.323, allocations: 177.6 kB / 435.3 MB, free: 6.238 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001292/0.3231, allocations: 85.09 kB / 435.4 MB, free: 6.137 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.803e-05/0.3232, allocations: 38.56 kB / 435.4 MB, free: 6.09 MB / 350.1 MB Notification: Performance of pre-optimization done (n=27): time 2.324e-06/0.3232, allocations: 0 / 435.4 MB, free: 6.09 MB / 350.1 MB Notification: Performance of matching and sorting (n=29): time 0.002607/0.3258, allocations: 1.406 MB / 436.8 MB, free: 4.574 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.4e-05/0.3259, allocations: 81.11 kB / 436.9 MB, free: 4.477 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000823/0.3267, allocations: 0.657 MB / 437.6 MB, free: 3.812 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.974e-05/0.3267, allocations: 29.7 kB / 437.6 MB, free: 3.777 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004421/0.3272, allocations: 0.6953 MB / 438.3 MB, free: 3.07 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001023/0.3273, allocations: 114.5 kB / 438.4 MB, free: 2.957 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001795/0.3275, allocations: 146.4 kB / 438.6 MB, free: 2.805 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001574/0.3276, allocations: 386.7 kB / 438.9 MB, free: 2.418 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002859/0.3279, allocations: 141.9 kB / 439.1 MB, free: 2.281 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005253/0.3285, allocations: 0.5507 MB / 439.6 MB, free: 1.527 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.001139/0.3296, allocations: 0.9609 MB / 440.6 MB, free: 340 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.299e-05/0.3297, allocations: 4 kB / 440.6 MB, free: 336 kB / 350.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001412/0.3311, allocations: 0.7986 MB / 441.4 MB, free: 15.52 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.107e-05/0.3311, allocations: 11.98 kB / 441.4 MB, free: 15.5 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.403e-05/0.3311, allocations: 16 kB / 441.4 MB, free: 15.49 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002933/0.3314, allocations: 81.69 kB / 441.5 MB, free: 15.4 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005616/0.332, allocations: 180 kB / 441.7 MB, free: 15.23 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002706/0.3347, allocations: 3.332 MB / 445 MB, free: 11.62 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004625/0.3352, allocations: 32 kB / 445 MB, free: 11.59 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.922e-05/0.3353, allocations: 47.98 kB / 445.1 MB, free: 11.54 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.0004191/0.3357, allocations: 261.5 kB / 445.3 MB, free: 11.27 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001389/0.3359, allocations: 75.06 kB / 445.4 MB, free: 11.2 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001341/0.336, allocations: 74.41 kB / 445.5 MB, free: 11.12 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.59e-06/0.336, allocations: 4.062 kB / 445.5 MB, free: 11.12 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.885e-06/0.336, allocations: 4 kB / 445.5 MB, free: 11.12 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.312e-06/0.336, allocations: 3.984 kB / 445.5 MB, free: 11.11 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001938/0.338, allocations: 1.251 MB / 446.7 MB, free: 9.789 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.833e-06/0.338, allocations: 4 kB / 446.7 MB, free: 9.785 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000317/0.3383, allocations: 67.91 kB / 446.8 MB, free: 9.723 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001771/0.3385, allocations: 61.67 kB / 446.9 MB, free: 9.656 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.385e-05/0.3386, allocations: 4 kB / 446.9 MB, free: 9.652 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002239/0.3408, allocations: 3.054 MB / 449.9 MB, free: 6.32 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.536e-06/0.3408, allocations: 3.938 kB / 449.9 MB, free: 6.316 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009393/0.3418, allocations: 0.6312 MB / 450.6 MB, free: 5.648 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001637/0.342, allocations: 136.2 kB / 450.7 MB, free: 5.496 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.478e-05/0.342, allocations: 12.06 kB / 450.7 MB, free: 5.484 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002735/0.3423, allocations: 11.98 kB / 450.7 MB, free: 5.473 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.004e-05/0.3424, allocations: 27.91 kB / 450.8 MB, free: 5.445 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.176e-05/0.3424, allocations: 12 kB / 450.8 MB, free: 5.434 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000567/0.343, allocations: 439 kB / 451.2 MB, free: 5.008 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.823e-06/0.343, allocations: 0 / 451.2 MB, free: 5.008 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009895/0.344, allocations: 163.9 kB / 451.4 MB, free: 4.848 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.001246/0.3453, allocations: 1.195 MB / 452.5 MB, free: 3.613 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001226/0.3465, allocations: 0.647 MB / 453.2 MB, free: 2.945 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.481e-06/0.3465, allocations: 0 / 453.2 MB, free: 2.945 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005309/0.3471, allocations: 368.9 kB / 453.6 MB, free: 2.562 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006709/0.3478, allocations: 96.44 kB / 453.6 MB, free: 2.473 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009133/0.3569, allocations: 6.425 MB / 460.1 MB, free: 11.49 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006685/0.3576, allocations: 1.034 MB / 461.1 MB, free: 10.43 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002853/0.3579, allocations: 78.03 kB / 461.2 MB, free: 10.35 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00046/0.3584, allocations: 427.3 kB / 461.6 MB, free: 9.934 MB / 382.1 MB Notification: Performance of SimCode: time 1.153e-06/0.3584, allocations: 0 / 461.6 MB, free: 9.934 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05856/0.417, allocations: 12.85 MB / 474.5 MB, free: 13.22 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.12/10.53, allocations: 25.83 kB / 474.5 MB, free: 13.2 MB / 398.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.GenerationOfFMUs_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_GenerationOfFMUs.fmu > 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