Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Electrical_Analog_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001453/0.001453, allocations: 106.6 kB / 17.73 MB, free: 5.348 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001387/0.001388, allocations: 191 kB / 18.66 MB, free: 4.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.625/1.625, allocations: 205.1 MB / 224.5 MB, free: 12.23 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001505/0.001505, allocations: 56.3 kB / 328 MB, free: 3.785 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1017/0.1032, allocations: 46.62 MB / 374.7 MB, free: 5.055 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.GenerationOfFMUs): time 0.2262/0.3294, allocations: 5.938 MB / 380.6 MB, free: 9.129 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003495/0.3329, allocations: 1.693 MB / 382.3 MB, free: 9.039 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009178/0.3339, allocations: 33.69 kB / 382.3 MB, free: 9.027 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005946/0.3345, allocations: 253.1 kB / 382.6 MB, free: 8.891 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006413/0.3352, allocations: 213.5 kB / 382.8 MB, free: 8.766 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00134/0.3365, allocations: 0.5026 MB / 383.3 MB, free: 8.754 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002274/0.3388, allocations: 1.397 MB / 384.7 MB, free: 8.066 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001075/0.3399, allocations: 0.6225 MB / 385.3 MB, free: 7.777 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008335/0.3408, allocations: 480.5 kB / 385.8 MB, free: 7.523 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005961/0.3414, allocations: 0.4908 MB / 386.3 MB, free: 7.23 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001916/0.3416, allocations: 123.3 kB / 386.4 MB, free: 7.23 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002859/0.3419, allocations: 135 kB / 386.5 MB, free: 7.227 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002035/0.3421, allocations: 267 kB / 386.8 MB, free: 7.039 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006059/0.3427, allocations: 0.6097 MB / 387.4 MB, free: 6.617 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002865/0.3456, allocations: 1.621 MB / 389 MB, free: 5.98 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.095e-05/0.3456, allocations: 0.7031 kB / 389 MB, free: 5.98 MB / 318.1 MB Notification: Performance of FrontEnd: time 6.662e-06/0.3456, allocations: 1.062 kB / 389 MB, free: 5.98 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.705e-05/0.3457, allocations: 0 / 389 MB, free: 5.98 MB / 318.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.003633/0.3494, allocations: 1.465 MB / 390.5 MB, free: 5.012 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.635e-05/0.3494, allocations: 8.688 kB / 390.5 MB, free: 5.012 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002391/0.3497, allocations: 176.5 kB / 390.7 MB, free: 4.895 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003098/0.35, allocations: 140.2 kB / 390.8 MB, free: 4.824 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001452/0.3514, allocations: 0.7605 MB / 391.6 MB, free: 4.34 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.191e-05/0.3515, allocations: 92.78 kB / 391.6 MB, free: 4.297 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000156/0.3517, allocations: 117.6 kB / 391.8 MB, free: 4.258 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002191/0.3539, allocations: 1.264 MB / 393 MB, free: 3.438 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.658e-05/0.354, allocations: 7.406 kB / 393 MB, free: 3.434 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.811e-05/0.3541, allocations: 58.31 kB / 393.1 MB, free: 3.391 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.779e-05/0.3541, allocations: 31.84 kB / 393.1 MB, free: 3.391 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001604/0.3557, allocations: 0.6833 MB / 393.8 MB, free: 3.137 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006776/0.3625, allocations: 6.781 MB / 400.6 MB, free: 13.46 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008135/0.3634, allocations: 273.1 kB / 400.8 MB, free: 13.33 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000435/0.3638, allocations: 182.6 kB / 401 MB, free: 13.26 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001687/0.364, allocations: 85.38 kB / 401.1 MB, free: 13.16 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.035e-05/0.3641, allocations: 37.44 kB / 401.1 MB, free: 13.12 MB / 334.1 MB Notification: Performance of pre-optimization done (n=27): time 3.146e-06/0.3641, allocations: 0 / 401.1 MB, free: 13.12 MB / 334.1 MB Notification: Performance of matching and sorting (n=29): time 0.002933/0.367, allocations: 1.394 MB / 402.5 MB, free: 12.08 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001026/0.3671, allocations: 80.64 kB / 402.6 MB, free: 11.99 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008607/0.368, allocations: 0.6631 MB / 403.3 MB, free: 11.69 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.861e-05/0.368, allocations: 31.7 kB / 403.3 MB, free: 11.65 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005708/0.3686, allocations: 0.6814 MB / 404 MB, free: 11.12 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.972e-05/0.3687, allocations: 120.1 kB / 404.1 MB, free: 11.03 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001906/0.3689, allocations: 151.1 kB / 404.3 MB, free: 10.94 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001983/0.3691, allocations: 382.5 kB / 404.6 MB, free: 10.6 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002722/0.3694, allocations: 146.8 kB / 404.8 MB, free: 10.55 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005397/0.37, allocations: 0.5535 MB / 405.3 MB, free: 9.938 MB / 334.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.001336/0.3713, allocations: 0.95 MB / 406.3 MB, free: 9 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.975e-06/0.3713, allocations: 3.094 kB / 406.3 MB, free: 9 MB / 334.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001548/0.3729, allocations: 0.7956 MB / 407.1 MB, free: 8.641 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.455e-05/0.3729, allocations: 12.31 kB / 407.1 MB, free: 8.641 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.864e-05/0.3729, allocations: 13.75 kB / 407.1 MB, free: 8.641 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002646/0.3732, allocations: 82.45 kB / 407.2 MB, free: 8.609 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005934/0.3738, allocations: 186 kB / 407.4 MB, free: 8.586 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002988/0.3768, allocations: 3.322 MB / 410.7 MB, free: 5.301 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006098/0.3775, allocations: 34.84 kB / 410.7 MB, free: 5.285 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.964e-05/0.3775, allocations: 39.78 kB / 410.8 MB, free: 5.281 MB / 334.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.0006326/0.3782, allocations: 285.2 kB / 411 MB, free: 5.051 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001501/0.3783, allocations: 73.69 kB / 411.1 MB, free: 5.012 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001336/0.3785, allocations: 71.83 kB / 411.2 MB, free: 4.961 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.442e-06/0.3785, allocations: 11.3 kB / 411.2 MB, free: 4.953 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.362e-05/0.3785, allocations: 2.125 kB / 411.2 MB, free: 4.953 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.713e-06/0.3785, allocations: 1.25 kB / 411.2 MB, free: 4.953 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002312/0.3808, allocations: 1.254 MB / 412.5 MB, free: 4.008 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.093e-06/0.3809, allocations: 2.125 kB / 412.5 MB, free: 4.008 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003611/0.3812, allocations: 69.55 kB / 412.5 MB, free: 3.988 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000219/0.3815, allocations: 51.19 kB / 412.6 MB, free: 3.957 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.805e-05/0.3815, allocations: 11.94 kB / 412.6 MB, free: 3.949 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002769/0.3843, allocations: 3.051 MB / 415.6 MB, free: 0.8242 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.946e-06/0.3843, allocations: 5.219 kB / 415.6 MB, free: 0.8203 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001134/0.3855, allocations: 0.6375 MB / 416.3 MB, free: 368 kB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002684/0.3857, allocations: 140.8 kB / 416.4 MB, free: 224 kB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001027/0.3858, allocations: 7.75 kB / 416.4 MB, free: 220 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003007/0.3862, allocations: 17.64 kB / 416.4 MB, free: 212 kB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.856e-05/0.3862, allocations: 27.09 kB / 416.5 MB, free: 196 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.053e-05/0.3863, allocations: 9.812 kB / 416.5 MB, free: 192 kB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0007555/0.387, allocations: 440 kB / 416.9 MB, free: 15.93 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.21e-07/0.387, allocations: 0 / 416.9 MB, free: 15.93 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001241/0.3883, allocations: 154.9 kB / 417.1 MB, free: 15.92 MB / 350.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.001329/0.3896, allocations: 1.191 MB / 418.2 MB, free: 14.92 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00154/0.3912, allocations: 0.6506 MB / 418.9 MB, free: 14.49 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.881e-06/0.3912, allocations: 0 / 418.9 MB, free: 14.49 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006052/0.3918, allocations: 362.2 kB / 419.3 MB, free: 14.2 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006611/0.3925, allocations: 82.56 kB / 419.3 MB, free: 14.15 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01092/0.4034, allocations: 6.405 MB / 425.7 MB, free: 9.34 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007932/0.4043, allocations: 1.033 MB / 426.8 MB, free: 8.492 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003206/0.4046, allocations: 85.89 kB / 426.9 MB, free: 8.445 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005181/0.4051, allocations: 423.2 kB / 427.3 MB, free: 8.07 MB / 350.1 MB Notification: Performance of SimCode: time 9.31e-07/0.4051, allocations: 0 / 427.3 MB, free: 8.07 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05971/0.4649, allocations: 12.82 MB / 440.1 MB, free: 11.39 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.32/12.79, allocations: 3.938 kB / 440.1 MB, free: 11.38 MB / 366.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.GenerationOfFMUs_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_GenerationOfFMUs.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches