Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001921/0.001921, allocations: 113.2 kB / 20.43 MB, free: 1.449 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002308/0.002308, allocations: 215.3 kB / 23.74 MB, free: 4.656 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.466/1.466, allocations: 230.6 MB / 257.5 MB, free: 8.023 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001795/0.001795, allocations: 47.92 kB / 377.8 MB, free: 3.113 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2685/0.2703, allocations: 53.36 MB / 431.2 MB, free: 6.84 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.GenerationOfFMUs): time 0.008873/0.2791, allocations: 6.067 MB / 437.2 MB, free: 0.7461 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004491/0.2836, allocations: 1.745 MB / 439 MB, free: 15 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001688/0.2853, allocations: 39.69 kB / 439 MB, free: 14.96 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001213/0.2865, allocations: 249.6 kB / 439.2 MB, free: 14.71 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001455/0.288, allocations: 225.7 kB / 439.5 MB, free: 14.49 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001868/0.2899, allocations: 0.5265 MB / 440 MB, free: 13.96 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002611/0.2925, allocations: 1.387 MB / 441.4 MB, free: 12.57 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001149/0.2936, allocations: 444.3 kB / 441.8 MB, free: 12.11 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001026/0.2946, allocations: 0.4942 MB / 442.3 MB, free: 11.61 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001058/0.2957, allocations: 0.4934 MB / 442.8 MB, free: 11.12 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003376/0.296, allocations: 124 kB / 442.9 MB, free: 11 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004149/0.2965, allocations: 139.9 kB / 443.1 MB, free: 10.86 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003326/0.2968, allocations: 271 kB / 443.3 MB, free: 10.59 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008849/0.2977, allocations: 0.6061 MB / 443.9 MB, free: 9.984 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002418/0.3001, allocations: 1.638 MB / 445.6 MB, free: 8.344 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.57e-06/0.3001, allocations: 7.875 kB / 445.6 MB, free: 8.336 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.3001, allocations: 0 / 445.6 MB, free: 8.336 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.5e-05/0.3002, allocations: 0 / 445.6 MB, free: 8.336 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.002668/0.3028, allocations: 1.42 MB / 447 MB, free: 6.879 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.328e-05/0.3029, allocations: 8.031 kB / 447 MB, free: 6.871 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002262/0.3031, allocations: 185.7 kB / 447.2 MB, free: 6.68 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004284/0.3035, allocations: 163 kB / 447.3 MB, free: 6.52 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001616/0.3052, allocations: 0.695 MB / 448 MB, free: 5.797 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.971e-05/0.3052, allocations: 86.41 kB / 448.1 MB, free: 5.711 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001626/0.3054, allocations: 120 kB / 448.2 MB, free: 5.594 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002287/0.3077, allocations: 1.264 MB / 449.5 MB, free: 4.156 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.349e-05/0.3077, allocations: 11.92 kB / 449.5 MB, free: 4.145 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.776e-05/0.3078, allocations: 56 kB / 449.6 MB, free: 4.09 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.95e-05/0.3079, allocations: 32 kB / 449.6 MB, free: 4.059 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00159/0.3094, allocations: 0.6851 MB / 450.3 MB, free: 3.371 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00758/0.317, allocations: 6.68 MB / 457 MB, free: 12.36 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007382/0.3178, allocations: 249.2 kB / 457.2 MB, free: 12.09 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003727/0.3181, allocations: 165.6 kB / 457.4 MB, free: 11.93 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.679e-05/0.3182, allocations: 8 kB / 457.4 MB, free: 11.92 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.966e-05/0.3183, allocations: 38.55 kB / 457.4 MB, free: 11.87 MB / 366.1 MB Notification: Performance of pre-optimization done (n=27): time 2.154e-06/0.3183, allocations: 0 / 457.4 MB, free: 11.87 MB / 366.1 MB Notification: Performance of matching and sorting (n=29): time 0.002879/0.3212, allocations: 1.278 MB / 458.7 MB, free: 10.53 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.847e-05/0.3212, allocations: 85.09 kB / 458.8 MB, free: 10.43 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008699/0.3221, allocations: 0.6609 MB / 459.4 MB, free: 9.758 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.711e-05/0.3221, allocations: 33.7 kB / 459.5 MB, free: 9.719 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005591/0.3227, allocations: 0.7016 MB / 460.2 MB, free: 9.008 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001108/0.3228, allocations: 127 kB / 460.3 MB, free: 8.883 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002357/0.323, allocations: 142.6 kB / 460.4 MB, free: 8.738 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002387/0.3233, allocations: 386.8 kB / 460.8 MB, free: 8.352 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003797/0.3236, allocations: 149.9 kB / 461 MB, free: 8.203 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006491/0.3243, allocations: 0.5471 MB / 461.5 MB, free: 7.461 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.001249/0.3255, allocations: 0.8108 MB / 462.3 MB, free: 6.453 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.041e-05/0.3256, allocations: 4 kB / 462.3 MB, free: 6.449 MB / 366.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001452/0.327, allocations: 0.8018 MB / 463.1 MB, free: 5.637 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.88e-05/0.327, allocations: 12 kB / 463.1 MB, free: 5.625 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.362e-05/0.3271, allocations: 16 kB / 463.2 MB, free: 5.609 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00027/0.3273, allocations: 77.69 kB / 463.2 MB, free: 5.527 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005879/0.3279, allocations: 192.2 kB / 463.4 MB, free: 5.34 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003932/0.3318, allocations: 3.118 MB / 466.5 MB, free: 1.996 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007635/0.3326, allocations: 32 kB / 466.6 MB, free: 1.965 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.969e-05/0.3327, allocations: 40 kB / 466.6 MB, free: 1.926 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.0007099/0.3334, allocations: 271.1 kB / 466.9 MB, free: 1.652 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002293/0.3337, allocations: 71.53 kB / 466.9 MB, free: 1.582 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001962/0.3338, allocations: 86.34 kB / 467 MB, free: 1.496 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.352e-06/0.3339, allocations: 4 kB / 467 MB, free: 1.492 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.668e-06/0.3339, allocations: 0 / 467 MB, free: 1.492 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.714e-06/0.3339, allocations: 0 / 467 MB, free: 1.492 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003115/0.337, allocations: 1.227 MB / 468.3 MB, free: 204 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.601e-06/0.337, allocations: 3.938 kB / 468.3 MB, free: 200 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004554/0.3374, allocations: 55.97 kB / 468.3 MB, free: 144 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002719/0.3377, allocations: 65.75 kB / 468.4 MB, free: 72 kB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.671e-05/0.3378, allocations: 8 kB / 468.4 MB, free: 64 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003644/0.3414, allocations: 2.85 MB / 471.2 MB, free: 12.98 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.962e-06/0.3414, allocations: 3.938 kB / 471.2 MB, free: 12.98 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001546/0.343, allocations: 0.6326 MB / 471.9 MB, free: 12.31 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002266/0.3432, allocations: 59.48 kB / 471.9 MB, free: 12.25 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001105/0.3433, allocations: 8.062 kB / 471.9 MB, free: 12.24 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000489/0.3438, allocations: 19.98 kB / 472 MB, free: 12.22 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001223/0.3439, allocations: 27.89 kB / 472 MB, free: 12.2 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.113e-05/0.344, allocations: 12 kB / 472 MB, free: 12.18 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001002/0.345, allocations: 435 kB / 472.4 MB, free: 11.76 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.345, allocations: 4 kB / 472.4 MB, free: 11.76 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001567/0.3465, allocations: 160 kB / 472.6 MB, free: 11.6 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.001864/0.3484, allocations: 1.193 MB / 473.8 MB, free: 10.37 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001795/0.3502, allocations: 0.6365 MB / 474.4 MB, free: 9.711 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.949e-06/0.3502, allocations: 3.938 kB / 474.4 MB, free: 9.707 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007504/0.3509, allocations: 350 kB / 474.8 MB, free: 9.34 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009192/0.3519, allocations: 87.75 kB / 474.8 MB, free: 9.258 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0169/0.3688, allocations: 6.47 MB / 481.3 MB, free: 2.23 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001282/0.37, allocations: 1.034 MB / 482.4 MB, free: 1.168 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005019/0.3705, allocations: 86.02 kB / 482.4 MB, free: 1.082 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008452/0.3714, allocations: 427.3 kB / 482.9 MB, free: 0.668 MB / 382.1 MB Notification: Performance of SimCode: time 1.323e-06/0.3714, allocations: 0 / 482.9 MB, free: 0.668 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07725/0.4486, allocations: 13.36 MB / 496.2 MB, free: 3.488 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.09/12.54, allocations: 6.844 kB / 496.2 MB, free: 3.484 MB / 398.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Analog_Examples_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Analog_Examples_GenerationOfFMUs.fmu > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_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_4.1.0_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: 15.086922958027571]