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.00111/0.001109, allocations: 117.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001205/0.001205, allocations: 200.6 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.396/1.396, allocations: 227.4 MB / 246.9 MB, free: 10.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00231/0.00231, allocations: 63.89 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3032/0.3055, allocations: 50.54 MB / 408.8 MB, free: 1.512 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.GenerationOfFMUs): time 0.006949/0.3126, allocations: 6.021 MB / 414.8 MB, free: 11.46 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003308/0.3159, allocations: 1.733 MB / 416.5 MB, free: 9.727 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006884/0.3166, allocations: 27.88 kB / 416.6 MB, free: 9.699 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006/0.3173, allocations: 249.5 kB / 416.8 MB, free: 9.453 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005549/0.3179, allocations: 217.8 kB / 417 MB, free: 9.238 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001062/0.3189, allocations: 0.5149 MB / 417.5 MB, free: 8.723 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001189/0.3201, allocations: 1.403 MB / 418.9 MB, free: 7.309 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007394/0.3209, allocations: 0.6286 MB / 419.6 MB, free: 6.656 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00049/0.3214, allocations: 486.1 kB / 420 MB, free: 6.18 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004621/0.3219, allocations: 0.4934 MB / 420.5 MB, free: 5.684 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001407/0.322, allocations: 120 kB / 420.6 MB, free: 5.566 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002325/0.3222, allocations: 140 kB / 420.8 MB, free: 5.43 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000181/0.3224, allocations: 271 kB / 421.1 MB, free: 5.164 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004553/0.3229, allocations: 0.61 MB / 421.7 MB, free: 4.551 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001367/0.3243, allocations: 1.633 MB / 423.3 MB, free: 2.914 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.771e-06/0.3243, allocations: 0 / 423.3 MB, free: 2.914 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.163e-06/0.3243, allocations: 3.938 kB / 423.3 MB, free: 2.91 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.984e-05/0.3243, allocations: 4 kB / 423.3 MB, free: 2.906 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.001854/0.3262, allocations: 1.496 MB / 424.8 MB, free: 1.355 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.675e-05/0.3262, allocations: 12.03 kB / 424.8 MB, free: 1.344 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001779/0.3264, allocations: 173.7 kB / 425 MB, free: 1.164 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003491/0.3268, allocations: 171 kB / 425.1 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00106/0.3278, allocations: 0.7711 MB / 425.9 MB, free: 184 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.9e-05/0.3279, allocations: 86.41 kB / 426 MB, free: 96 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001513/0.3281, allocations: 124.1 kB / 426.1 MB, free: 15.97 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001724/0.3298, allocations: 1.26 MB / 427.4 MB, free: 14.54 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.72e-05/0.3299, allocations: 7.938 kB / 427.4 MB, free: 14.53 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.874e-05/0.33, allocations: 52 kB / 427.4 MB, free: 14.48 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.553e-05/0.33, allocations: 36 kB / 427.5 MB, free: 14.45 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001162/0.3312, allocations: 0.6929 MB / 428.2 MB, free: 13.75 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005159/0.3363, allocations: 6.79 MB / 435 MB, free: 6.633 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006719/0.337, allocations: 277.1 kB / 435.2 MB, free: 6.344 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003393/0.3374, allocations: 181.7 kB / 435.4 MB, free: 6.16 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001413/0.3375, allocations: 85.09 kB / 435.5 MB, free: 6.059 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.647e-05/0.3376, allocations: 34.56 kB / 435.5 MB, free: 6.016 MB / 350.1 MB Notification: Performance of pre-optimization done (n=27): time 2.074e-06/0.3376, allocations: 0 / 435.5 MB, free: 6.016 MB / 350.1 MB Notification: Performance of matching and sorting (n=29): time 0.002333/0.3399, allocations: 1.435 MB / 437 MB, free: 4.48 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.756e-05/0.34, allocations: 81.05 kB / 437 MB, free: 4.383 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006756/0.3406, allocations: 0.6687 MB / 437.7 MB, free: 3.707 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.376e-05/0.3407, allocations: 33.7 kB / 437.7 MB, free: 3.668 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004095/0.3411, allocations: 0.7015 MB / 438.4 MB, free: 2.957 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.352e-05/0.3412, allocations: 119.1 kB / 438.6 MB, free: 2.84 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000175/0.3414, allocations: 142.6 kB / 438.7 MB, free: 2.691 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001944/0.3416, allocations: 386.8 kB / 439.1 MB, free: 2.305 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002608/0.3418, allocations: 141.9 kB / 439.2 MB, free: 2.168 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005546/0.3424, allocations: 0.5546 MB / 439.8 MB, free: 1.41 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.001161/0.3436, allocations: 0.9571 MB / 440.7 MB, free: 224 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.111e-06/0.3436, allocations: 7.938 kB / 440.7 MB, free: 216 kB / 350.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001187/0.3448, allocations: 0.7953 MB / 441.5 MB, free: 15.4 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.159e-05/0.3448, allocations: 15.28 kB / 441.5 MB, free: 15.39 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.524e-05/0.3448, allocations: 16 kB / 441.6 MB, free: 15.37 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000237/0.3451, allocations: 86.3 kB / 441.6 MB, free: 15.28 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005136/0.3456, allocations: 187.7 kB / 441.8 MB, free: 15.1 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002248/0.3479, allocations: 3.317 MB / 445.1 MB, free: 11.51 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003599/0.3482, allocations: 28.12 kB / 445.2 MB, free: 11.48 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.465e-05/0.3483, allocations: 48 kB / 445.2 MB, free: 11.43 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.0003912/0.3487, allocations: 281.3 kB / 445.5 MB, free: 11.15 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001083/0.3488, allocations: 75.59 kB / 445.6 MB, free: 11.07 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001/0.3489, allocations: 78.34 kB / 445.6 MB, free: 11 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.144e-06/0.3489, allocations: 0 / 445.6 MB, free: 11 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.623e-06/0.3489, allocations: 4 kB / 445.6 MB, free: 10.99 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.988e-06/0.3489, allocations: 96 / 445.6 MB, free: 10.99 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001617/0.3506, allocations: 1.255 MB / 446.9 MB, free: 9.664 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.115e-06/0.3506, allocations: 3.938 kB / 446.9 MB, free: 9.66 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003013/0.3509, allocations: 67.95 kB / 447 MB, free: 9.594 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001479/0.351, allocations: 53.62 kB / 447 MB, free: 9.535 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.479e-05/0.3511, allocations: 12.08 kB / 447 MB, free: 9.523 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00189/0.353, allocations: 3.062 MB / 450.1 MB, free: 6.184 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.353, allocations: 64 / 450.1 MB, free: 6.184 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007933/0.3538, allocations: 0.6315 MB / 450.7 MB, free: 5.516 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001011/0.3539, allocations: 148.6 kB / 450.9 MB, free: 5.352 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.049e-05/0.354, allocations: 8 kB / 450.9 MB, free: 5.344 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002494/0.3542, allocations: 15.98 kB / 450.9 MB, free: 5.328 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.802e-05/0.3543, allocations: 31.84 kB / 450.9 MB, free: 5.297 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.683e-05/0.3543, allocations: 4 kB / 450.9 MB, free: 5.293 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004578/0.3548, allocations: 447 kB / 451.4 MB, free: 4.859 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3548, allocations: 0 / 451.4 MB, free: 4.859 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008025/0.3556, allocations: 152 kB / 451.5 MB, free: 4.711 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.001154/0.3568, allocations: 1.188 MB / 452.7 MB, free: 3.48 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001001/0.3578, allocations: 0.6441 MB / 453.3 MB, free: 2.812 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.776e-06/0.3578, allocations: 0 / 453.3 MB, free: 2.812 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004553/0.3582, allocations: 374.3 kB / 453.7 MB, free: 2.422 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005258/0.3588, allocations: 83.16 kB / 453.8 MB, free: 2.344 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007772/0.3666, allocations: 6.47 MB / 460.3 MB, free: 11.32 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006084/0.3672, allocations: 1.034 MB / 461.3 MB, free: 10.25 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002483/0.3675, allocations: 90.02 kB / 461.4 MB, free: 10.16 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004302/0.3679, allocations: 427.3 kB / 461.8 MB, free: 9.75 MB / 382.1 MB Notification: Performance of SimCode: time 9.52e-07/0.3679, allocations: 0 / 461.8 MB, free: 9.75 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03875/0.4067, allocations: 12.73 MB / 474.5 MB, free: 13.17 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.11/10.52, allocations: 18.83 kB / 474.6 MB, free: 13.15 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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Analog.Examples.GenerationOfFMUs_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 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.csv","/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