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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001361/0.001361, allocations: 122.8 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001572/0.001572, allocations: 202 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.35/1.35, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001204/0.001204, allocations: 59.89 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.282/0.2832, allocations: 50.55 MB / 408.8 MB, free: 1.535 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.GenerationOfFMUs): time 0.006826/0.2901, allocations: 6.01 MB / 414.8 MB, free: 11.5 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003041/0.2932, allocations: 1.733 MB / 416.5 MB, free: 9.758 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004304/0.2936, allocations: 31.88 kB / 416.6 MB, free: 9.727 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004617/0.2941, allocations: 245.6 kB / 416.8 MB, free: 9.484 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004164/0.2945, allocations: 221.7 kB / 417 MB, free: 9.266 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008932/0.2954, allocations: 0.5149 MB / 417.5 MB, free: 8.75 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001201/0.2966, allocations: 1.399 MB / 418.9 MB, free: 7.34 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007437/0.2974, allocations: 0.6247 MB / 419.6 MB, free: 6.691 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005155/0.2979, allocations: 478.1 kB / 420 MB, free: 6.223 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000492/0.2984, allocations: 0.4973 MB / 420.5 MB, free: 5.723 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001645/0.2986, allocations: 120 kB / 420.6 MB, free: 5.605 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002313/0.2988, allocations: 143.9 kB / 420.8 MB, free: 5.465 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001852/0.299, allocations: 267 kB / 421 MB, free: 5.203 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000443/0.2995, allocations: 0.6139 MB / 421.6 MB, free: 4.586 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001285/0.3008, allocations: 1.621 MB / 423.3 MB, free: 2.961 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.643e-06/0.3008, allocations: 4 kB / 423.3 MB, free: 2.957 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.3008, allocations: 3.938 kB / 423.3 MB, free: 2.953 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.817e-05/0.3008, allocations: 0 / 423.3 MB, free: 2.953 MB / 334.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.001878/0.3027, allocations: 1.462 MB / 424.7 MB, free: 1.438 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.682e-05/0.3028, allocations: 12.03 kB / 424.8 MB, free: 1.426 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001864/0.3029, allocations: 185.6 kB / 424.9 MB, free: 1.234 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003373/0.3033, allocations: 158.2 kB / 425.1 MB, free: 1.078 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001056/0.3044, allocations: 0.7628 MB / 425.8 MB, free: 276 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.922e-05/0.3044, allocations: 90.41 kB / 425.9 MB, free: 184 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001441/0.3046, allocations: 119.9 kB / 426.1 MB, free: 64 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001752/0.3063, allocations: 1.264 MB / 427.3 MB, free: 14.62 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.321e-05/0.3064, allocations: 7.938 kB / 427.3 MB, free: 14.62 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.515e-05/0.3065, allocations: 52 kB / 427.4 MB, free: 14.57 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.226e-05/0.3065, allocations: 32 kB / 427.4 MB, free: 14.54 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001222/0.3077, allocations: 0.6929 MB / 428.1 MB, free: 13.84 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005425/0.3132, allocations: 6.777 MB / 434.9 MB, free: 6.734 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006312/0.3138, allocations: 269.2 kB / 435.1 MB, free: 6.453 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003311/0.3142, allocations: 181.6 kB / 435.3 MB, free: 6.27 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001188/0.3143, allocations: 85.09 kB / 435.4 MB, free: 6.168 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.939e-05/0.3143, allocations: 38.56 kB / 435.4 MB, free: 6.121 MB / 350.1 MB Notification: Performance of pre-optimization done (n=27): time 2.114e-06/0.3143, allocations: 0 / 435.4 MB, free: 6.121 MB / 350.1 MB Notification: Performance of matching and sorting (n=29): time 0.002335/0.3167, allocations: 1.398 MB / 436.8 MB, free: 4.613 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.268e-05/0.3168, allocations: 89.05 kB / 436.9 MB, free: 4.508 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007556/0.3175, allocations: 0.6608 MB / 437.6 MB, free: 3.84 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.322e-05/0.3176, allocations: 33.7 kB / 437.6 MB, free: 3.801 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004305/0.318, allocations: 0.6797 MB / 438.3 MB, free: 3.109 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.483e-05/0.3181, allocations: 122.5 kB / 438.4 MB, free: 2.988 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001873/0.3183, allocations: 142.4 kB / 438.6 MB, free: 2.84 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001978/0.3185, allocations: 386.8 kB / 438.9 MB, free: 2.453 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002723/0.3188, allocations: 145.9 kB / 439.1 MB, free: 2.312 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004832/0.3193, allocations: 0.5507 MB / 439.6 MB, free: 1.559 MB / 350.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.001021/0.3203, allocations: 0.9536 MB / 440.6 MB, free: 380 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.941e-06/0.3203, allocations: 11.88 kB / 440.6 MB, free: 368 kB / 350.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001171/0.3215, allocations: 0.7902 MB / 441.4 MB, free: 15.56 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.45e-05/0.3215, allocations: 15.98 kB / 441.4 MB, free: 15.54 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.779e-05/0.3215, allocations: 16 kB / 441.4 MB, free: 15.53 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002539/0.3218, allocations: 82.38 kB / 441.5 MB, free: 15.44 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005187/0.3223, allocations: 183.7 kB / 441.7 MB, free: 15.26 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002509/0.3248, allocations: 3.324 MB / 445 MB, free: 11.66 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003461/0.3252, allocations: 28 kB / 445 MB, free: 11.63 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.319e-05/0.3253, allocations: 43.98 kB / 445.1 MB, free: 11.59 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.000382/0.3257, allocations: 273.5 kB / 445.3 MB, free: 11.31 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001049/0.3258, allocations: 75 kB / 445.4 MB, free: 11.24 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001164/0.3259, allocations: 74.55 kB / 445.5 MB, free: 11.16 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.818e-06/0.3259, allocations: 3.984 kB / 445.5 MB, free: 11.16 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.201e-06/0.3259, allocations: 4 kB / 445.5 MB, free: 11.16 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.785e-06/0.3259, allocations: 3.984 kB / 445.5 MB, free: 11.15 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001697/0.3276, allocations: 1.259 MB / 446.8 MB, free: 9.82 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.168e-06/0.3276, allocations: 7.922 kB / 446.8 MB, free: 9.812 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002959/0.3279, allocations: 59.97 kB / 446.8 MB, free: 9.754 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001457/0.3281, allocations: 61.7 kB / 446.9 MB, free: 9.688 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.16e-05/0.3281, allocations: 8 kB / 446.9 MB, free: 9.68 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002067/0.3302, allocations: 3.05 MB / 449.9 MB, free: 6.352 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.3302, allocations: 0 / 449.9 MB, free: 6.352 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008248/0.331, allocations: 0.6312 MB / 450.6 MB, free: 5.684 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001245/0.3312, allocations: 136.2 kB / 450.7 MB, free: 5.531 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.591e-05/0.3312, allocations: 8.062 kB / 450.7 MB, free: 5.523 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002361/0.3315, allocations: 15.98 kB / 450.7 MB, free: 5.508 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.217e-05/0.3315, allocations: 31.84 kB / 450.8 MB, free: 5.477 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.669e-05/0.3316, allocations: 12 kB / 450.8 MB, free: 5.465 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004543/0.332, allocations: 443 kB / 451.2 MB, free: 5.035 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.332, allocations: 0 / 451.2 MB, free: 5.035 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008256/0.3329, allocations: 160 kB / 451.4 MB, free: 4.879 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.001068/0.3339, allocations: 1.192 MB / 452.5 MB, free: 3.645 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009834/0.3349, allocations: 0.6436 MB / 453.2 MB, free: 2.977 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.856e-06/0.335, allocations: 1.5 kB / 453.2 MB, free: 2.977 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004393/0.3354, allocations: 373 kB / 453.6 MB, free: 2.59 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004943/0.3359, allocations: 75.56 kB / 453.6 MB, free: 2.52 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007648/0.3436, allocations: 6.433 MB / 460.1 MB, free: 11.53 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006608/0.3442, allocations: 1.034 MB / 461.1 MB, free: 10.47 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002458/0.3445, allocations: 86.02 kB / 461.2 MB, free: 10.38 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004092/0.3449, allocations: 423.3 kB / 461.6 MB, free: 9.973 MB / 382.1 MB Notification: Performance of SimCode: time 9.82e-07/0.3449, allocations: 0 / 461.6 MB, free: 9.973 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0434/0.3883, allocations: 12.85 MB / 474.4 MB, free: 13.26 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.04/10.43, allocations: 23.47 kB / 474.5 MB, free: 13.24 MB / 398.1 MB (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 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_GenerationOfFMUs.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches