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.001749/0.001749, allocations: 105.1 kB / 21.22 MB, free: 0.6289 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.001457/0.001457, allocations: 214.2 kB / 24.52 MB, free: 3.918 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.434/1.434, allocations: 230.5 MB / 258.2 MB, free: 7.75 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_GenerationOfFMUs",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001844/0.001844, allocations: 63.89 kB / 378.5 MB, free: 2.77 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2744/0.2762, allocations: 53.39 MB / 431.9 MB, free: 6.426 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.GenerationOfFMUs): time 0.01252/0.2888, allocations: 5.296 MB / 437.2 MB, free: 1.109 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005354/0.2941, allocations: 1.691 MB / 438.9 MB, free: 15.41 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001293/0.2954, allocations: 39.69 kB / 438.9 MB, free: 15.37 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001089/0.2965, allocations: 249.6 kB / 439.2 MB, free: 15.12 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001269/0.2978, allocations: 225.7 kB / 439.4 MB, free: 14.9 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001962/0.2997, allocations: 0.5149 MB / 439.9 MB, free: 14.39 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002794/0.3025, allocations: 1.391 MB / 441.3 MB, free: 13 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00123/0.3037, allocations: 454 kB / 441.8 MB, free: 12.53 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001074/0.3048, allocations: 498.1 kB / 442.2 MB, free: 12.04 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001069/0.3059, allocations: 0.4934 MB / 442.7 MB, free: 11.54 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003298/0.3062, allocations: 124 kB / 442.9 MB, free: 11.42 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004796/0.3067, allocations: 139.9 kB / 443 MB, free: 11.29 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003994/0.3071, allocations: 267 kB / 443.3 MB, free: 11.02 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009682/0.3081, allocations: 489.5 kB / 443.7 MB, free: 10.54 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003181/0.3112, allocations: 1.653 MB / 445.4 MB, free: 8.883 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.833e-06/0.3113, allocations: 0 / 445.4 MB, free: 8.883 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.524e-06/0.3113, allocations: 0 / 445.4 MB, free: 8.883 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.765e-05/0.3113, allocations: 4 kB / 445.4 MB, free: 8.879 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.004087/0.3154, allocations: 1.42 MB / 446.8 MB, free: 7.422 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.415e-05/0.3155, allocations: 8.031 kB / 446.8 MB, free: 7.414 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 7.747e-05/0.3155, allocations: 38.41 kB / 446.9 MB, free: 7.375 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003496/0.3159, allocations: 177.7 kB / 447 MB, free: 7.191 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006911/0.3166, allocations: 171 kB / 447.2 MB, free: 7.023 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001549/0.3181, allocations: 0.695 MB / 447.9 MB, free: 6.297 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.586e-05/0.3182, allocations: 86.41 kB / 448 MB, free: 6.211 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000163/0.3184, allocations: 120 kB / 448.1 MB, free: 6.094 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002263/0.3206, allocations: 1.322 MB / 449.4 MB, free: 4.586 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.354e-05/0.3207, allocations: 7.938 kB / 449.4 MB, free: 4.578 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.597e-05/0.3208, allocations: 52 kB / 449.5 MB, free: 4.527 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.981e-05/0.3208, allocations: 32 kB / 449.5 MB, free: 4.496 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00132/0.3221, allocations: 0.689 MB / 450.2 MB, free: 3.809 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006965/0.3291, allocations: 6.423 MB / 456.6 MB, free: 13.05 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000699/0.3298, allocations: 245.2 kB / 456.9 MB, free: 12.79 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003663/0.3302, allocations: 161.6 kB / 457 MB, free: 12.63 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001063/0.3303, allocations: 4 kB / 457 MB, free: 12.62 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.945e-05/0.3303, allocations: 42.55 kB / 457.1 MB, free: 12.57 MB / 366.1 MB Notification: Performance of pre-optimization done (n=27): time 2.534e-06/0.3303, allocations: 0 / 457.1 MB, free: 12.57 MB / 366.1 MB Notification: Performance of matching and sorting (n=29): time 0.002619/0.3329, allocations: 1.267 MB / 458.3 MB, free: 11.24 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.395e-05/0.333, allocations: 89.05 kB / 458.4 MB, free: 11.13 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009342/0.3339, allocations: 0.6687 MB / 459.1 MB, free: 10.46 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.515e-05/0.334, allocations: 33.7 kB / 459.1 MB, free: 10.42 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006337/0.3346, allocations: 0.7015 MB / 459.8 MB, free: 9.707 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001067/0.3347, allocations: 123 kB / 459.9 MB, free: 9.586 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002132/0.3349, allocations: 142.6 kB / 460.1 MB, free: 9.441 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002074/0.3351, allocations: 382.8 kB / 460.5 MB, free: 9.059 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002927/0.3354, allocations: 153.9 kB / 460.6 MB, free: 8.906 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00066/0.3361, allocations: 0.5472 MB / 461.2 MB, free: 8.164 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.001215/0.3373, allocations: 0.8042 MB / 462 MB, free: 7.16 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.921e-06/0.3373, allocations: 7.938 kB / 462 MB, free: 7.152 MB / 366.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001331/0.3386, allocations: 0.8011 MB / 462.8 MB, free: 6.344 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.579e-05/0.3387, allocations: 12 kB / 462.8 MB, free: 6.332 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.131e-05/0.3387, allocations: 16 kB / 462.8 MB, free: 6.316 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002623/0.3389, allocations: 77.69 kB / 462.9 MB, free: 6.234 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005476/0.3395, allocations: 183.6 kB / 463 MB, free: 6.055 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003113/0.3426, allocations: 3.106 MB / 466.2 MB, free: 2.723 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003788/0.343, allocations: 32 kB / 466.2 MB, free: 2.691 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.459e-05/0.343, allocations: 47.94 kB / 466.2 MB, free: 2.645 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.0004583/0.3435, allocations: 280.4 kB / 466.5 MB, free: 2.363 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001155/0.3436, allocations: 79.66 kB / 466.6 MB, free: 2.285 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001258/0.3437, allocations: 70.48 kB / 466.7 MB, free: 2.215 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.982e-06/0.3437, allocations: 7.984 kB / 466.7 MB, free: 2.207 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.098e-05/0.3438, allocations: 4 kB / 466.7 MB, free: 2.203 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.498e-06/0.3438, allocations: 0 / 466.7 MB, free: 2.203 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001894/0.3456, allocations: 1.176 MB / 467.8 MB, free: 0.9609 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.38e-06/0.3457, allocations: 8.094 kB / 467.8 MB, free: 0.9531 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003123/0.346, allocations: 63.95 kB / 467.9 MB, free: 0.8906 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001664/0.3461, allocations: 53.62 kB / 468 MB, free: 0.832 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.26e-05/0.3462, allocations: 11.98 kB / 468 MB, free: 0.8203 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002449/0.3486, allocations: 2.846 MB / 470.8 MB, free: 13.74 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.803e-06/0.3486, allocations: 0 / 470.8 MB, free: 13.74 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009316/0.3495, allocations: 0.6317 MB / 471.5 MB, free: 13.08 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.974e-05/0.3496, allocations: 67.48 kB / 471.5 MB, free: 13.01 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.244e-05/0.3497, allocations: 8 kB / 471.5 MB, free: 13 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002616/0.3499, allocations: 20.05 kB / 471.5 MB, free: 12.98 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.695e-05/0.35, allocations: 35.83 kB / 471.6 MB, free: 12.95 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.071e-05/0.35, allocations: 8 kB / 471.6 MB, free: 12.94 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000593/0.3506, allocations: 439 kB / 472 MB, free: 12.52 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3506, allocations: 0 / 472 MB, free: 12.52 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009681/0.3516, allocations: 160 kB / 472.2 MB, free: 12.36 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.001424/0.353, allocations: 1.188 MB / 473.4 MB, free: 11.13 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001255/0.3543, allocations: 0.6287 MB / 474 MB, free: 10.48 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/0.3543, allocations: 0.6875 kB / 474 MB, free: 10.48 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005336/0.3548, allocations: 361.1 kB / 474.3 MB, free: 10.1 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005688/0.3554, allocations: 87.39 kB / 474.4 MB, free: 10.02 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008925/0.3643, allocations: 6.47 MB / 480.9 MB, free: 2.992 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004961/0.3648, allocations: 450.9 kB / 481.3 MB, free: 2.516 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002601/0.3651, allocations: 86.02 kB / 481.4 MB, free: 2.43 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005002/0.3656, allocations: 427.3 kB / 481.8 MB, free: 2.016 MB / 382.1 MB Notification: Performance of SimCode: time 6.51e-07/0.3656, allocations: 0 / 481.8 MB, free: 2.016 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04536/0.4109, allocations: 13.42 MB / 495.3 MB, free: 4.801 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.39/12.8, allocations: 12 kB / 495.3 MB, free: 4.789 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: 15.3253979209112]