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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001313/0.001313, allocations: 115.6 kB / 18.49 MB, free: 4.566 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001217/0.001217, allocations: 190.7 kB / 21.43 MB, free: 1.641 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.39/1.39, allocations: 225.6 MB / 249.8 MB, free: 3.625 MB / 190.1 MB " [Timeout remaining time 178] 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_GenerationOfFMUs",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001446/0.001446, allocations: 51.91 kB / 366.4 MB, free: 0.8164 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09733/0.09877, allocations: 52.13 MB / 418.5 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.GenerationOfFMUs): time 0.007643/0.1064, allocations: 6.024 MB / 424.5 MB, free: 6.535 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003511/0.1099, allocations: 1.652 MB / 426.2 MB, free: 4.879 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008151/0.1107, allocations: 35.75 kB / 426.2 MB, free: 4.844 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006041/0.1113, allocations: 249.6 kB / 426.5 MB, free: 4.598 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006635/0.112, allocations: 221.7 kB / 426.7 MB, free: 4.379 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001229/0.1132, allocations: 0.4993 MB / 427.2 MB, free: 3.879 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001981/0.1152, allocations: 1.391 MB / 428.6 MB, free: 2.48 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00087/0.1161, allocations: 447.8 kB / 429 MB, free: 2.02 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008217/0.1169, allocations: 494.1 kB / 429.5 MB, free: 1.535 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000557/0.1175, allocations: 0.4973 MB / 430 MB, free: 1.035 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001586/0.1176, allocations: 120 kB / 430.1 MB, free: 0.918 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002445/0.1179, allocations: 140 kB / 430.2 MB, free: 0.7812 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002192/0.1181, allocations: 259 kB / 430.5 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005739/0.1187, allocations: 0.614 MB / 431.1 MB, free: 15.91 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002084/0.1207, allocations: 1.634 MB / 432.7 MB, free: 14.27 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.703e-06/0.1208, allocations: 0 / 432.7 MB, free: 14.27 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.1208, allocations: 0 / 432.7 MB, free: 14.27 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.332e-05/0.1208, allocations: 0 / 432.7 MB, free: 14.27 MB / 366.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.002501/0.1233, allocations: 1.492 MB / 434.2 MB, free: 12.72 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.02e-05/0.1233, allocations: 8.031 kB / 434.2 MB, free: 12.71 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.986e-05/0.1234, allocations: 34.41 kB / 434.3 MB, free: 12.68 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002189/0.1236, allocations: 185.6 kB / 434.5 MB, free: 12.48 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002286/0.1238, allocations: 147.1 kB / 434.6 MB, free: 12.34 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001292/0.1251, allocations: 0.7594 MB / 435.4 MB, free: 11.54 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.452e-05/0.1252, allocations: 102.3 kB / 435.5 MB, free: 11.44 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001491/0.1254, allocations: 116 kB / 435.6 MB, free: 11.32 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00203/0.1274, allocations: 1.26 MB / 436.8 MB, free: 9.895 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.499e-05/0.1274, allocations: 7.938 kB / 436.8 MB, free: 9.887 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001017/0.1275, allocations: 48 kB / 436.9 MB, free: 9.84 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.286e-05/0.1276, allocations: 32 kB / 436.9 MB, free: 9.809 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001314/0.1289, allocations: 0.6968 MB / 437.6 MB, free: 9.109 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006514/0.1354, allocations: 6.798 MB / 444.4 MB, free: 1.977 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006939/0.1361, allocations: 253.2 kB / 444.7 MB, free: 1.711 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003629/0.1364, allocations: 161.6 kB / 444.8 MB, free: 1.547 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001506/0.1366, allocations: 89.09 kB / 444.9 MB, free: 1.441 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.087e-05/0.1366, allocations: 30.56 kB / 444.9 MB, free: 1.402 MB / 366.1 MB Notification: Performance of pre-optimization done (n=27): time 1.974e-06/0.1366, allocations: 0 / 444.9 MB, free: 1.402 MB / 366.1 MB Notification: Performance of matching and sorting (n=29): time 0.1855/0.3222, allocations: 1.424 MB / 446.4 MB, free: 30.09 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.456e-05/0.3222, allocations: 85.2 kB / 446.4 MB, free: 30 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000719/0.3229, allocations: 0.6621 MB / 447.1 MB, free: 29.87 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.12e-05/0.323, allocations: 31.98 kB / 447.1 MB, free: 29.84 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002983/0.3233, allocations: 0.6994 MB / 447.8 MB, free: 29.71 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.79e-05/0.3233, allocations: 125 kB / 448 MB, free: 29.65 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000155/0.3235, allocations: 138.9 kB / 448.1 MB, free: 29.62 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001045/0.3236, allocations: 384.5 kB / 448.5 MB, free: 29.31 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002502/0.3239, allocations: 145.7 kB / 448.6 MB, free: 29.31 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000407/0.3243, allocations: 0.5508 MB / 449.2 MB, free: 28.79 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.0009191/0.3252, allocations: 0.9588 MB / 450.1 MB, free: 28.09 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.103e-06/0.3252, allocations: 4.656 kB / 450.1 MB, free: 28.09 MB / 366.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.00116/0.3263, allocations: 0.7991 MB / 450.9 MB, free: 27.94 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.291e-05/0.3264, allocations: 11.31 kB / 450.9 MB, free: 27.94 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.616e-05/0.3264, allocations: 14.34 kB / 450.9 MB, free: 27.94 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002488/0.3266, allocations: 86.11 kB / 451 MB, free: 27.92 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004855/0.3271, allocations: 184.8 kB / 451.2 MB, free: 27.91 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001875/0.329, allocations: 3.332 MB / 454.5 MB, free: 24.89 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004168/0.3294, allocations: 33.91 kB / 454.6 MB, free: 24.89 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.834e-05/0.3295, allocations: 38.91 kB / 454.6 MB, free: 24.89 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.0003667/0.3299, allocations: 274.4 kB / 454.9 MB, free: 24.76 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000106/0.33, allocations: 85.7 kB / 455 MB, free: 24.71 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001067/0.3301, allocations: 72.19 kB / 455 MB, free: 24.7 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.342e-06/0.3301, allocations: 3.469 kB / 455 MB, free: 24.7 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.391e-05/0.3301, allocations: 2.188 kB / 455 MB, free: 24.7 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.613e-06/0.3301, allocations: 2.578 kB / 455 MB, free: 24.7 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001734/0.3318, allocations: 1.245 MB / 456.3 MB, free: 24.17 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.346e-06/0.3318, allocations: 1.625 kB / 456.3 MB, free: 24.17 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000305/0.3321, allocations: 64.08 kB / 456.4 MB, free: 24.17 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001479/0.3323, allocations: 58.3 kB / 456.4 MB, free: 24.14 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.079e-05/0.3323, allocations: 13.47 kB / 456.4 MB, free: 24.13 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001507/0.3338, allocations: 3.051 MB / 459.5 MB, free: 21.09 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.3338, allocations: 6.375 kB / 459.5 MB, free: 21.09 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008368/0.3347, allocations: 0.6288 MB / 460.1 MB, free: 20.67 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.29e-05/0.3347, allocations: 144.9 kB / 460.2 MB, free: 20.53 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.731e-05/0.3348, allocations: 8.031 kB / 460.3 MB, free: 20.52 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002483/0.335, allocations: 18.92 kB / 460.3 MB, free: 20.52 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.15e-05/0.3351, allocations: 33.88 kB / 460.3 MB, free: 20.51 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.838e-05/0.3351, allocations: 11.94 kB / 460.3 MB, free: 20.5 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006515/0.3358, allocations: 437 kB / 460.7 MB, free: 20.32 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3358, allocations: 0.6875 kB / 460.7 MB, free: 20.32 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009761/0.3368, allocations: 155.2 kB / 460.9 MB, free: 20.3 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.0009886/0.3378, allocations: 1.182 MB / 462.1 MB, free: 19.35 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009879/0.3387, allocations: 0.6325 MB / 462.7 MB, free: 18.98 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.3387, allocations: 0 / 462.7 MB, free: 18.98 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004084/0.3392, allocations: 356 kB / 463.1 MB, free: 18.71 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005035/0.3397, allocations: 84.42 kB / 463.1 MB, free: 18.66 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007115/0.3468, allocations: 6.45 MB / 469.6 MB, free: 14.33 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004901/0.3473, allocations: 1.033 MB / 470.6 MB, free: 13.62 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002545/0.3475, allocations: 88.36 kB / 470.7 MB, free: 13.6 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003432/0.3479, allocations: 427 kB / 471.1 MB, free: 13.27 MB / 366.1 MB Notification: Performance of SimCode: time 6.41e-07/0.3479, allocations: 0 / 471.1 MB, free: 13.27 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04097/0.3888, allocations: 12.83 MB / 484 MB, free: 8.93 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.53/10.92, allocations: 0.9375 kB / 484 MB, free: 8.93 MB / 366.1 MB " [Timeout remaining time 649] (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 --stepSize=0.001 --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) [Timeout 52.5] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.378455917991232]