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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001747/0.001747, allocations: 116.4 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002281/0.002281, allocations: 215.1 kB / 23.75 MB, free: 4.672 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.514/1.514, allocations: 230.5 MB / 257.4 MB, free: 8 MB / 206.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001941/0.001941, allocations: 67.88 kB / 377.8 MB, free: 2.984 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2739/0.2758, allocations: 53.42 MB / 431.2 MB, free: 6.672 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.GenerationOfFMUs): time 0.007649/0.2835, allocations: 6.051 MB / 437.3 MB, free: 0.5938 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00345/0.2869, allocations: 1.753 MB / 439 MB, free: 14.84 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005599/0.2875, allocations: 43.69 kB / 439.1 MB, free: 14.79 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005377/0.288, allocations: 245.6 kB / 439.3 MB, free: 14.55 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004926/0.2885, allocations: 217.7 kB / 439.5 MB, free: 14.34 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001094/0.2896, allocations: 0.5304 MB / 440 MB, free: 13.8 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001612/0.2912, allocations: 1.383 MB / 441.4 MB, free: 12.42 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000725/0.2919, allocations: 448.3 kB / 441.9 MB, free: 11.95 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006884/0.2926, allocations: 0.4981 MB / 442.4 MB, free: 11.45 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005734/0.2932, allocations: 497.3 kB / 442.8 MB, free: 10.96 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001609/0.2933, allocations: 124 kB / 443 MB, free: 10.84 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002367/0.2936, allocations: 140 kB / 443.1 MB, free: 10.71 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002171/0.2938, allocations: 263 kB / 443.4 MB, free: 10.45 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000544/0.2943, allocations: 0.6139 MB / 444 MB, free: 9.832 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001713/0.2961, allocations: 1.646 MB / 445.6 MB, free: 8.184 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.638e-06/0.2961, allocations: 3.938 kB / 445.6 MB, free: 8.18 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.2961, allocations: 0 / 445.6 MB, free: 8.18 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.714e-05/0.2961, allocations: 0 / 445.6 MB, free: 8.18 MB / 350.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.002253/0.2983, allocations: 1.42 MB / 447 MB, free: 6.723 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.415e-05/0.2984, allocations: 8.031 kB / 447 MB, free: 6.715 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001913/0.2986, allocations: 185.6 kB / 447.2 MB, free: 6.523 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003712/0.2989, allocations: 163 kB / 447.4 MB, free: 6.363 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001237/0.3002, allocations: 0.695 MB / 448.1 MB, free: 5.637 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.65e-05/0.3003, allocations: 94.41 kB / 448.2 MB, free: 5.543 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001554/0.3004, allocations: 120 kB / 448.3 MB, free: 5.426 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002006/0.3024, allocations: 1.26 MB / 449.6 MB, free: 3.992 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.635e-05/0.3025, allocations: 7.938 kB / 449.6 MB, free: 3.984 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.164e-05/0.3026, allocations: 56 kB / 449.6 MB, free: 3.93 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.339e-05/0.3026, allocations: 35.98 kB / 449.7 MB, free: 3.895 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001366/0.304, allocations: 0.6929 MB / 450.3 MB, free: 3.203 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00651/0.3105, allocations: 6.672 MB / 457 MB, free: 12.2 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006769/0.3111, allocations: 245.3 kB / 457.3 MB, free: 11.94 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003511/0.3115, allocations: 165.1 kB / 457.4 MB, free: 11.77 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.979e-05/0.3116, allocations: 7.984 kB / 457.4 MB, free: 11.77 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.13e-05/0.3116, allocations: 38.56 kB / 457.5 MB, free: 11.72 MB / 366.1 MB Notification: Performance of pre-optimization done (n=27): time 2.124e-06/0.3116, allocations: 3.938 kB / 457.5 MB, free: 11.71 MB / 366.1 MB Notification: Performance of matching and sorting (n=29): time 0.002467/0.3141, allocations: 1.278 MB / 458.7 MB, free: 10.37 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.515e-05/0.3141, allocations: 81.11 kB / 458.8 MB, free: 10.27 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008051/0.3149, allocations: 0.6648 MB / 459.5 MB, free: 9.602 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.179e-05/0.315, allocations: 29.7 kB / 459.5 MB, free: 9.566 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000516/0.3155, allocations: 0.7094 MB / 460.2 MB, free: 8.848 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001064/0.3156, allocations: 127 kB / 460.4 MB, free: 8.723 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001823/0.3158, allocations: 138.6 kB / 460.5 MB, free: 8.582 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002103/0.316, allocations: 394.6 kB / 460.9 MB, free: 8.188 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002831/0.3163, allocations: 141.9 kB / 461 MB, free: 8.047 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005975/0.3169, allocations: 0.551 MB / 461.6 MB, free: 7.301 MB / 366.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.00121/0.3181, allocations: 0.8107 MB / 462.4 MB, free: 6.293 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.083e-06/0.3181, allocations: 4 kB / 462.4 MB, free: 6.289 MB / 366.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001436/0.3195, allocations: 0.7917 MB / 463.2 MB, free: 5.484 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.556e-05/0.3196, allocations: 14.5 kB / 463.2 MB, free: 5.473 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.638e-05/0.3196, allocations: 12 kB / 463.2 MB, free: 5.461 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002579/0.3198, allocations: 93.59 kB / 463.3 MB, free: 5.363 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005442/0.3204, allocations: 180.2 kB / 463.5 MB, free: 5.188 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002797/0.3232, allocations: 3.117 MB / 466.6 MB, free: 1.844 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003834/0.3236, allocations: 35.98 kB / 466.6 MB, free: 1.809 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.039e-05/0.3236, allocations: 43.98 kB / 466.7 MB, free: 1.766 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.0004244/0.324, allocations: 276.4 kB / 466.9 MB, free: 1.488 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001159/0.3241, allocations: 71.53 kB / 467 MB, free: 1.418 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001158/0.3243, allocations: 70.42 kB / 467.1 MB, free: 1.348 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.035e-06/0.3243, allocations: 11.98 kB / 467.1 MB, free: 1.336 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.097e-06/0.3243, allocations: 0 / 467.1 MB, free: 1.336 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.12e-06/0.3243, allocations: 0 / 467.1 MB, free: 1.336 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00187/0.3262, allocations: 1.223 MB / 468.3 MB, free: 48 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.936e-06/0.3262, allocations: 0 / 468.3 MB, free: 48 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003188/0.3265, allocations: 67.89 kB / 468.4 MB, free: 15.98 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001638/0.3266, allocations: 53.69 kB / 468.4 MB, free: 15.92 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.509e-05/0.3267, allocations: 16.11 kB / 468.4 MB, free: 15.91 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002319/0.329, allocations: 2.842 MB / 471.3 MB, free: 12.83 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.329, allocations: 4.031 kB / 471.3 MB, free: 12.83 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009406/0.3299, allocations: 0.6326 MB / 471.9 MB, free: 12.16 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001075/0.33, allocations: 67.47 kB / 472 MB, free: 12.09 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.259e-05/0.3301, allocations: 8.062 kB / 472 MB, free: 12.09 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002528/0.3303, allocations: 23.92 kB / 472 MB, free: 12.06 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.616e-05/0.3304, allocations: 27.89 kB / 472 MB, free: 12.04 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.699e-05/0.3304, allocations: 8 kB / 472 MB, free: 12.03 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005362/0.331, allocations: 439 kB / 472.5 MB, free: 11.6 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.331, allocations: 4 kB / 472.5 MB, free: 11.6 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008951/0.3319, allocations: 160 kB / 472.6 MB, free: 11.44 MB / 382.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.001266/0.3331, allocations: 1.184 MB / 473.8 MB, free: 10.22 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001107/0.3342, allocations: 0.6403 MB / 474.5 MB, free: 9.555 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.392e-06/0.3343, allocations: 4 kB / 474.5 MB, free: 9.551 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004878/0.3347, allocations: 357.2 kB / 474.8 MB, free: 9.176 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005318/0.3353, allocations: 87.3 kB / 474.9 MB, free: 9.098 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009431/0.3447, allocations: 6.471 MB / 481.4 MB, free: 2.07 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007747/0.3455, allocations: 1.031 MB / 482.4 MB, free: 1.012 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002734/0.3458, allocations: 90.02 kB / 482.5 MB, free: 0.9219 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004717/0.3462, allocations: 427.3 kB / 482.9 MB, free: 0.5078 MB / 382.1 MB Notification: Performance of SimCode: time 7.81e-07/0.3462, allocations: 0 / 482.9 MB, free: 0.5078 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05499/0.4012, allocations: 13.35 MB / 496.2 MB, free: 3.285 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.02/12.42, allocations: 10.95 kB / 496.3 MB, free: 3.277 MB / 398.1 MB " [Timeout remaining time 647] (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 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_GenerationOfFMUs.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.8890525768511]