Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001412/0.001412, allocations: 109.2 kB / 16.92 MB, free: 5.754 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001933/0.001933, allocations: 191.3 kB / 17.85 MB, free: 5.176 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.45/1.45, allocations: 222.9 MB / 241.5 MB, free: 15.29 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001095/0.001095, allocations: 43.81 kB / 300.7 MB, free: 5.828 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1165/0.1176, allocations: 49.44 MB / 350.2 MB, free: 4.371 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.GenerationOfFMUs): time 0.009619/0.1273, allocations: 5.985 MB / 356.1 MB, free: 14.35 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00404/0.1314, allocations: 1.648 MB / 357.8 MB, free: 12.7 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001309/0.1327, allocations: 35.88 kB / 357.8 MB, free: 12.66 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009249/0.1337, allocations: 245.6 kB / 358.1 MB, free: 12.42 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001187/0.1349, allocations: 217.7 kB / 358.3 MB, free: 12.2 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001478/0.1364, allocations: 0.4993 MB / 358.8 MB, free: 11.7 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002164/0.1386, allocations: 1.387 MB / 360.2 MB, free: 10.31 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001178/0.1398, allocations: 0.6247 MB / 360.8 MB, free: 9.664 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008202/0.1406, allocations: 474.1 kB / 361.3 MB, free: 9.199 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000697/0.1413, allocations: 0.4934 MB / 361.7 MB, free: 8.703 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000277/0.1416, allocations: 128 kB / 361.9 MB, free: 8.578 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003368/0.142, allocations: 139.9 kB / 362 MB, free: 8.441 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002529/0.1422, allocations: 271.1 kB / 362.3 MB, free: 8.176 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000679/0.1429, allocations: 0.61 MB / 362.9 MB, free: 7.562 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001721/0.1446, allocations: 1.557 MB / 364.4 MB, free: 6 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.5e-06/0.1446, allocations: 0 / 364.4 MB, free: 6 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.537e-06/0.1447, allocations: 0 / 364.4 MB, free: 6 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.042e-05/0.1447, allocations: 3.938 kB / 364.4 MB, free: 5.996 MB / 302.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.002487/0.1472, allocations: 1.462 MB / 365.9 MB, free: 4.48 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.182e-05/0.1473, allocations: 8.031 kB / 365.9 MB, free: 4.473 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002296/0.1475, allocations: 181.6 kB / 366.1 MB, free: 4.285 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002426/0.1478, allocations: 142.2 kB / 366.2 MB, free: 4.145 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001101/0.1489, allocations: 0.7159 MB / 366.9 MB, free: 3.387 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.116e-05/0.149, allocations: 94.41 kB / 367 MB, free: 3.293 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001583/0.1492, allocations: 116 kB / 367.2 MB, free: 3.18 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001927/0.1511, allocations: 1.264 MB / 368.4 MB, free: 1.746 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.709e-05/0.1511, allocations: 7.938 kB / 368.4 MB, free: 1.738 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.86e-05/0.1512, allocations: 52 kB / 368.5 MB, free: 1.688 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.532e-05/0.1513, allocations: 32 kB / 368.5 MB, free: 1.656 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00126/0.1526, allocations: 0.689 MB / 369.2 MB, free: 0.9648 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2332/0.3857, allocations: 6.817 MB / 376 MB, free: 19.36 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007874/0.3865, allocations: 268.3 kB / 376.3 MB, free: 19.31 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004077/0.387, allocations: 179.9 kB / 376.5 MB, free: 19.29 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002351/0.3872, allocations: 91.31 kB / 376.5 MB, free: 19.2 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.654e-05/0.3873, allocations: 41.22 kB / 376.6 MB, free: 19.15 MB / 302.1 MB Notification: Performance of pre-optimization done (n=27): time 2.665e-06/0.3873, allocations: 0.9375 kB / 376.6 MB, free: 19.15 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.002465/0.3897, allocations: 1.403 MB / 378 MB, free: 18.3 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.607e-05/0.3898, allocations: 82.23 kB / 378.1 MB, free: 18.21 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007047/0.3905, allocations: 0.659 MB / 378.7 MB, free: 18.05 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.988e-05/0.3905, allocations: 31.17 kB / 378.8 MB, free: 18.02 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003006/0.3908, allocations: 0.6735 MB / 379.4 MB, free: 17.49 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.483e-05/0.3909, allocations: 117.1 kB / 379.5 MB, free: 17.4 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001501/0.391, allocations: 144.4 kB / 379.7 MB, free: 17.32 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.805e-05/0.3912, allocations: 387.2 kB / 380.1 MB, free: 16.97 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002561/0.3914, allocations: 144 kB / 380.2 MB, free: 16.93 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003858/0.3918, allocations: 0.5493 MB / 380.8 MB, free: 16.32 MB / 302.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.0008344/0.3927, allocations: 0.9708 MB / 381.7 MB, free: 15.37 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.803e-06/0.3927, allocations: 8.125 kB / 381.7 MB, free: 15.37 MB / 302.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001227/0.3939, allocations: 0.776 MB / 382.5 MB, free: 15.02 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.645e-05/0.3939, allocations: 19.02 kB / 382.5 MB, free: 15.02 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.451e-05/0.394, allocations: 20 kB / 382.5 MB, free: 15.02 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002612/0.3942, allocations: 86.61 kB / 382.6 MB, free: 14.98 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005567/0.3948, allocations: 177.4 kB / 382.8 MB, free: 14.96 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001934/0.3967, allocations: 3.336 MB / 386.1 MB, free: 11.71 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004099/0.3972, allocations: 35 kB / 386.2 MB, free: 11.7 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.369e-05/0.3972, allocations: 40.38 kB / 386.2 MB, free: 11.69 MB / 302.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.0003984/0.3976, allocations: 274.2 kB / 386.5 MB, free: 11.48 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001117/0.3978, allocations: 77.78 kB / 386.6 MB, free: 11.43 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001158/0.3979, allocations: 76.31 kB / 386.6 MB, free: 11.39 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.148e-06/0.3979, allocations: 5.625 kB / 386.6 MB, free: 11.39 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.909e-06/0.3979, allocations: 2.156 kB / 386.6 MB, free: 11.39 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.833e-06/0.3979, allocations: 4.688 kB / 386.6 MB, free: 11.38 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001896/0.3998, allocations: 1.245 MB / 387.9 MB, free: 10.65 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.066e-06/0.3998, allocations: 5.062 kB / 387.9 MB, free: 10.65 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003765/0.4002, allocations: 65.3 kB / 388 MB, free: 10.64 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000187/0.4004, allocations: 58.58 kB / 388 MB, free: 10.62 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.329e-05/0.4005, allocations: 7.297 kB / 388 MB, free: 10.61 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001593/0.4021, allocations: 3.053 MB / 391.1 MB, free: 7.574 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.414e-06/0.4021, allocations: 1.188 kB / 391.1 MB, free: 7.574 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008433/0.4029, allocations: 0.6259 MB / 391.7 MB, free: 7.16 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.899e-05/0.403, allocations: 137.2 kB / 391.8 MB, free: 7.027 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.613e-05/0.4031, allocations: 8.062 kB / 391.8 MB, free: 7.023 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002596/0.4034, allocations: 21 kB / 391.9 MB, free: 7.016 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.687e-05/0.4035, allocations: 30.59 kB / 391.9 MB, free: 7.004 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.251e-05/0.4035, allocations: 12.38 kB / 391.9 MB, free: 7 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005859/0.4041, allocations: 432.9 kB / 392.3 MB, free: 6.812 MB / 302.1 MB Notification: Performance of sort global known variables: time 4.01e-07/0.4041, allocations: 0 / 392.3 MB, free: 6.812 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0009911/0.4051, allocations: 154.9 kB / 392.5 MB, free: 6.797 MB / 302.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.001106/0.4062, allocations: 1.189 MB / 393.7 MB, free: 5.836 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001283/0.4075, allocations: 0.6608 MB / 394.3 MB, free: 5.461 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.4075, allocations: 4.188 kB / 394.3 MB, free: 5.457 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004721/0.408, allocations: 359 kB / 394.7 MB, free: 5.191 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005607/0.4086, allocations: 85.09 kB / 394.8 MB, free: 5.148 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00874/0.4173, allocations: 6.648 MB / 401.4 MB, free: 0.5234 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007577/0.4181, allocations: 1.035 MB / 402.4 MB, free: 15.81 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003207/0.4184, allocations: 90.95 kB / 402.5 MB, free: 15.79 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004793/0.4189, allocations: 421.7 kB / 402.9 MB, free: 15.45 MB / 318.1 MB Notification: Performance of SimCode: time 1.393e-06/0.4189, allocations: 4 kB / 403 MB, free: 15.45 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03969/0.4586, allocations: 12.33 MB / 415.3 MB, free: 5.977 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.562/10.02, allocations: 11.5 kB / 415.3 MB, free: 5.969 MB / 318.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_GenerationOfFMUs.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches