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) 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 4.0.0+maint.om/package.mo", uses=false) 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_4_0_0_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.002314/0.002314, allocations: 111 kB / 17.06 MB, free: 5.969 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.003662/0.003663, allocations: 200 kB / 18.01 MB, free: 5.055 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.809/2.809, allocations: 222.9 MB / 241.7 MB, free: 15.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001965/0.001965, allocations: 51.92 kB / 350.8 MB, free: 3.703 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6051/0.6071, allocations: 49.44 MB / 400.3 MB, free: 8.398 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.GenerationOfFMUs): time 0.01397/0.6212, allocations: 5.99 MB / 406.2 MB, free: 2.77 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00711/0.6284, allocations: 1.644 MB / 407.9 MB, free: 1.121 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002235/0.6307, allocations: 39.81 kB / 407.9 MB, free: 1.082 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001554/0.6323, allocations: 245.6 kB / 408.2 MB, free: 0.8398 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002487/0.6349, allocations: 217.8 kB / 408.4 MB, free: 0.625 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002965/0.6379, allocations: 0.4993 MB / 408.9 MB, free: 128 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004043/0.6419, allocations: 1.391 MB / 410.3 MB, free: 14.73 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001986/0.644, allocations: 0.6169 MB / 410.9 MB, free: 14.09 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001539/0.6455, allocations: 478.1 kB / 411.4 MB, free: 13.61 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001353/0.6469, allocations: 0.5012 MB / 411.9 MB, free: 13.11 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006155/0.6476, allocations: 127.9 kB / 412 MB, free: 12.98 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007599/0.6484, allocations: 136 kB / 412.1 MB, free: 12.85 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005944/0.649, allocations: 267.1 kB / 412.4 MB, free: 12.59 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001764/0.6508, allocations: 0.6138 MB / 413 MB, free: 11.97 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004691/0.6555, allocations: 1.609 MB / 414.6 MB, free: 10.36 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.672e-05/0.6556, allocations: 0 / 414.6 MB, free: 10.36 MB / 334.1 MB Notification: Performance of FrontEnd: time 5.641e-06/0.6556, allocations: 0 / 414.6 MB, free: 10.36 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001676/0.6558, allocations: 0 / 414.6 MB, free: 10.36 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.004813/0.6606, allocations: 1.466 MB / 416.1 MB, free: 8.84 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.511e-05/0.6607, allocations: 11.97 kB / 416.1 MB, free: 8.828 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002559/0.6609, allocations: 177.7 kB / 416.3 MB, free: 8.645 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003106/0.6613, allocations: 138.3 kB / 416.4 MB, free: 8.508 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002012/0.6633, allocations: 0.7588 MB / 417.1 MB, free: 7.707 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001006/0.6634, allocations: 90.41 kB / 417.2 MB, free: 7.617 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002153/0.6636, allocations: 119.9 kB / 417.4 MB, free: 7.5 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003396/0.6671, allocations: 1.268 MB / 418.6 MB, free: 6.062 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.355e-05/0.6671, allocations: 11.88 kB / 418.6 MB, free: 6.051 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001365/0.6673, allocations: 52 kB / 418.7 MB, free: 6 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.673e-05/0.6673, allocations: 32 kB / 418.7 MB, free: 5.969 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002108/0.6695, allocations: 0.6852 MB / 419.4 MB, free: 5.281 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01019/0.6797, allocations: 6.781 MB / 426.2 MB, free: 14.16 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001111/0.6809, allocations: 265.3 kB / 426.4 MB, free: 13.89 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005244/0.6814, allocations: 180.4 kB / 426.6 MB, free: 13.71 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000235/0.6817, allocations: 89.59 kB / 426.7 MB, free: 13.6 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.779e-05/0.6817, allocations: 42.5 kB / 426.7 MB, free: 13.55 MB / 350.1 MB Notification: Performance of pre-optimization done (n=27): time 6.141e-06/0.6817, allocations: 0 / 426.7 MB, free: 13.55 MB / 350.1 MB Notification: Performance of matching and sorting (n=29): time 0.003849/0.6856, allocations: 1.397 MB / 428.1 MB, free: 12.04 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.801e-05/0.6857, allocations: 85.11 kB / 428.2 MB, free: 11.94 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001238/0.687, allocations: 0.6608 MB / 428.9 MB, free: 11.27 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.838e-05/0.687, allocations: 29.7 kB / 428.9 MB, free: 11.23 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000636/0.6877, allocations: 0.6759 MB / 429.6 MB, free: 10.55 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001402/0.6878, allocations: 118.4 kB / 429.7 MB, free: 10.43 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002829/0.6881, allocations: 154.4 kB / 429.9 MB, free: 10.27 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002391/0.6884, allocations: 386.8 kB / 430.2 MB, free: 9.883 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004147/0.6888, allocations: 141.9 kB / 430.4 MB, free: 9.746 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008589/0.6897, allocations: 0.5546 MB / 430.9 MB, free: 8.992 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.001803/0.6915, allocations: 0.9562 MB / 431.9 MB, free: 7.805 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.254e-05/0.6915, allocations: 8 kB / 431.9 MB, free: 7.797 MB / 350.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.002144/0.6937, allocations: 0.7915 MB / 432.7 MB, free: 6.992 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.895e-05/0.6937, allocations: 12 kB / 432.7 MB, free: 6.98 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.565e-05/0.6938, allocations: 16 kB / 432.7 MB, free: 6.965 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003777/0.6941, allocations: 85.67 kB / 432.8 MB, free: 6.875 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009075/0.6951, allocations: 175.7 kB / 433 MB, free: 6.703 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004085/0.6992, allocations: 3.332 MB / 436.3 MB, free: 3.094 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008494/0.7001, allocations: 28 kB / 436.3 MB, free: 3.066 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.107e-05/0.7002, allocations: 44.06 kB / 436.4 MB, free: 3.023 MB / 350.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.000881/0.7011, allocations: 273.4 kB / 436.6 MB, free: 2.746 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002389/0.7013, allocations: 75.06 kB / 436.7 MB, free: 2.672 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001973/0.7015, allocations: 74.41 kB / 436.8 MB, free: 2.598 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.746e-06/0.7015, allocations: 4 kB / 436.8 MB, free: 2.594 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.534e-05/0.7016, allocations: 4 kB / 436.8 MB, free: 2.59 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.045e-05/0.7016, allocations: 3.984 kB / 436.8 MB, free: 2.586 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003017/0.7046, allocations: 1.245 MB / 438 MB, free: 1.27 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.66e-06/0.7047, allocations: 0 / 438 MB, free: 1.27 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005419/0.7052, allocations: 67.98 kB / 438.1 MB, free: 1.203 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004302/0.7057, allocations: 57.72 kB / 438.2 MB, free: 1.141 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.366e-05/0.7057, allocations: 15.98 kB / 438.2 MB, free: 1.125 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004309/0.7101, allocations: 3.049 MB / 441.2 MB, free: 13.79 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.963e-05/0.7101, allocations: 8.016 kB / 441.2 MB, free: 13.79 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002014/0.7122, allocations: 0.635 MB / 441.9 MB, free: 13.11 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003935/0.7126, allocations: 136.2 kB / 442 MB, free: 12.96 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001849/0.7128, allocations: 8.062 kB / 442 MB, free: 12.95 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006378/0.7134, allocations: 19.98 kB / 442 MB, free: 12.93 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001698/0.7136, allocations: 27.91 kB / 442.1 MB, free: 12.91 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.294e-05/0.7137, allocations: 12 kB / 442.1 MB, free: 12.89 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001366/0.7151, allocations: 435 kB / 442.5 MB, free: 12.47 MB / 366.1 MB Notification: Performance of sort global known variables: time 5.41e-07/0.7151, allocations: 3.938 kB / 442.5 MB, free: 12.47 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002188/0.7173, allocations: 160 kB / 442.7 MB, free: 12.31 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.002683/0.72, allocations: 1.177 MB / 443.8 MB, free: 11.09 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002566/0.7226, allocations: 0.6531 MB / 444.5 MB, free: 10.42 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 7.334e-06/0.7226, allocations: 4.188 kB / 444.5 MB, free: 10.41 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009663/0.7236, allocations: 361.2 kB / 444.8 MB, free: 10.04 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001204/0.7248, allocations: 82.45 kB / 444.9 MB, free: 9.961 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01912/0.744, allocations: 6.42 MB / 451.3 MB, free: 3.031 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001634/0.7457, allocations: 1.031 MB / 452.4 MB, free: 1.973 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000646/0.7464, allocations: 82.03 kB / 452.4 MB, free: 1.891 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00111/0.7476, allocations: 423.3 kB / 452.9 MB, free: 1.48 MB / 366.1 MB Notification: Performance of SimCode: time 4.358e-06/0.7476, allocations: 3.938 kB / 452.9 MB, free: 1.477 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.146/0.8936, allocations: 12.79 MB / 465.7 MB, free: 4.84 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 26.81/27.7, allocations: 10.11 kB / 465.7 MB, free: 4.836 MB / 382.1 MB (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 --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) 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) Reference file matches