Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Analog_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Analog_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009005/0.0009005, allocations: 196.3 kB / 17.38 MB, free: 4.434 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.187/1.187, allocations: 226.5 MB / 244.7 MB, free: 8.195 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007515/0.0007515, allocations: 101.7 kB / 296.7 MB, free: 6.902 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002084/0.0002085, allocations: 8 kB / 356.8 MB, free: 10.81 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1757/0.1759, allocations: 51.29 MB / 408.1 MB, free: 27.7 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.GenerationOfFMUs): time 0.003695/0.1796, allocations: 5.172 MB / 413.3 MB, free: 22.5 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001654/0.1813, allocations: 1.604 MB / 414.9 MB, free: 20.91 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003176/0.1816, allocations: 35.75 kB / 414.9 MB, free: 20.87 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002773/0.1819, allocations: 170.5 kB / 415.1 MB, free: 20.7 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002793/0.1822, allocations: 174.6 kB / 415.3 MB, free: 20.54 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005225/0.1827, allocations: 339.3 kB / 415.6 MB, free: 20.21 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007461/0.1835, allocations: 1.259 MB / 416.9 MB, free: 18.94 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005408/0.184, allocations: 0.5433 MB / 417.4 MB, free: 18.38 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000285/0.1843, allocations: 362.4 kB / 417.8 MB, free: 18.02 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002457/0.1846, allocations: 393.7 kB / 418.1 MB, free: 17.64 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.312e-05/0.1847, allocations: 48 kB / 418.2 MB, free: 17.59 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001379/0.1848, allocations: 68 kB / 418.3 MB, free: 17.52 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.917e-05/0.1849, allocations: 179.1 kB / 418.4 MB, free: 17.35 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002488/0.1852, allocations: 0.5106 MB / 418.9 MB, free: 16.83 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006042/0.1858, allocations: 1.158 MB / 420.1 MB, free: 15.67 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.02e-06/0.1858, allocations: 0 / 420.1 MB, free: 15.67 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.1858, allocations: 0 / 420.1 MB, free: 15.67 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.182e-05/0.1858, allocations: 0 / 420.1 MB, free: 15.67 MB / 298.7 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.001287/0.1871, allocations: 1.252 MB / 421.4 MB, free: 14.36 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.513e-05/0.1872, allocations: 8.031 kB / 421.4 MB, free: 14.36 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001297/0.1873, allocations: 177.7 kB / 421.5 MB, free: 14.17 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002976/0.1876, allocations: 162.3 kB / 421.7 MB, free: 14.01 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006861/0.1883, allocations: 0.7198 MB / 422.4 MB, free: 13.25 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.077e-05/0.1883, allocations: 86.41 kB / 422.5 MB, free: 13.16 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001044/0.1884, allocations: 120 kB / 422.6 MB, free: 13.04 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001432/0.1899, allocations: 1.264 MB / 423.9 MB, free: 11.61 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.74e-05/0.1899, allocations: 3.938 kB / 423.9 MB, free: 11.61 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.185e-05/0.19, allocations: 56 kB / 423.9 MB, free: 11.55 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.805e-05/0.19, allocations: 32 kB / 424 MB, free: 11.52 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001011/0.191, allocations: 0.689 MB / 424.7 MB, free: 10.83 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003644/0.1947, allocations: 6.824 MB / 431.5 MB, free: 3.672 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005272/0.1952, allocations: 281.5 kB / 431.8 MB, free: 3.379 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002898/0.1955, allocations: 185.1 kB / 431.9 MB, free: 3.195 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001043/0.1957, allocations: 81.11 kB / 432 MB, free: 3.098 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.611e-05/0.1957, allocations: 46.55 kB / 432.1 MB, free: 3.043 MB / 298.7 MB Notification: Performance of pre-optimization done (n=27): time 1.453e-06/0.1957, allocations: 0 / 432.1 MB, free: 3.043 MB / 298.7 MB Notification: Performance of matching and sorting (n=29): time 0.001774/0.1975, allocations: 1.402 MB / 433.5 MB, free: 1.531 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.25e-05/0.1975, allocations: 89.09 kB / 433.6 MB, free: 1.426 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005017/0.198, allocations: 0.6569 MB / 434.2 MB, free: 0.7539 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.715e-05/0.198, allocations: 29.7 kB / 434.2 MB, free: 0.7188 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002261/0.1983, allocations: 0.6797 MB / 434.9 MB, free: 28 kB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.971e-05/0.1984, allocations: 118.5 kB / 435 MB, free: 15.91 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.201e-05/0.1984, allocations: 16 kB / 435 MB, free: 15.89 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001446/0.1985, allocations: 382.8 kB / 435.4 MB, free: 15.51 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002696/0.1988, allocations: 145.9 kB / 435.6 MB, free: 15.37 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004979/0.1993, allocations: 0.5507 MB / 436.1 MB, free: 14.62 MB / 314.7 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: inverseCapacitor1.capacitor.v = $START.inverseCapacitor1.capacitor.v ($START.directCapacitor1.currentToVoltage.y = $START.inverseCapacitor1.capacitor.v) Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: inverseInductor3.inductor.i = $START.inverseInductor3.inductor.i ($START.directInductor3.currentToVoltage.y = $START.inverseInductor3.inductor.i) Notification: Performance of analyzeInitialSystem (initialization): time 0.001021/0.2004, allocations: 0.9618 MB / 437.1 MB, free: 13.42 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.923e-06/0.2004, allocations: 4 kB / 437.1 MB, free: 13.41 MB / 314.7 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.00116/0.2015, allocations: 0.7986 MB / 437.9 MB, free: 12.61 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.814e-05/0.2016, allocations: 8 kB / 437.9 MB, free: 12.6 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.436e-05/0.2016, allocations: 16 kB / 437.9 MB, free: 12.58 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002091/0.2018, allocations: 86.3 kB / 438 MB, free: 12.49 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004974/0.2023, allocations: 188 kB / 438.2 MB, free: 12.31 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002103/0.2044, allocations: 2.981 MB / 441.2 MB, free: 9.059 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003208/0.2048, allocations: 32 kB / 441.2 MB, free: 9.027 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.277e-05/0.2048, allocations: 47.98 kB / 441.2 MB, free: 8.98 MB / 314.7 MB Warning: The initial conditions are over specified. The following 2 initial equations are redundant, so they are removed from the initialization sytem: inverseCapacitor1.capacitor.v = $START.inverseCapacitor1.capacitor.v inverseInductor3.inductor.i = $START.inverseInductor3.inductor.i. 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 4,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003175/0.2051, allocations: 264.8 kB / 441.5 MB, free: 8.715 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.75e-05/0.2052, allocations: 79.06 kB / 441.6 MB, free: 8.637 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000105/0.2054, allocations: 82.59 kB / 441.6 MB, free: 8.555 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.406e-05/0.2054, allocations: 7.984 kB / 441.7 MB, free: 8.547 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.13e-06/0.2054, allocations: 7.938 kB / 441.7 MB, free: 8.539 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.55e-06/0.2054, allocations: 3.984 kB / 441.7 MB, free: 8.535 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001618/0.207, allocations: 1.247 MB / 442.9 MB, free: 7.215 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.729e-06/0.207, allocations: 7.938 kB / 442.9 MB, free: 7.207 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00032/0.2074, allocations: 71.83 kB / 443 MB, free: 7.137 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001456/0.2075, allocations: 65.72 kB / 443.1 MB, free: 7.066 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.248e-05/0.2076, allocations: 11.98 kB / 443.1 MB, free: 7.055 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001756/0.2093, allocations: 2.765 MB / 445.8 MB, free: 4.023 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.2093, allocations: 4.062 kB / 445.8 MB, free: 4.02 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000806/0.2101, allocations: 0.6391 MB / 446.5 MB, free: 3.344 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.28e-05/0.2102, allocations: 140.2 kB / 446.6 MB, free: 3.188 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.638e-05/0.2103, allocations: 8 kB / 446.6 MB, free: 3.18 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002436/0.2106, allocations: 23.98 kB / 446.6 MB, free: 3.156 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.377e-05/0.2106, allocations: 27.91 kB / 446.7 MB, free: 3.129 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.854e-05/0.2107, allocations: 7.984 kB / 446.7 MB, free: 3.121 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0004281/0.2111, allocations: 431 kB / 447.1 MB, free: 2.707 MB / 314.7 MB Notification: Performance of sort global known variables: time 1e-07/0.2111, allocations: 0 / 447.1 MB, free: 2.707 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007275/0.2118, allocations: 152 kB / 447.2 MB, free: 2.559 MB / 314.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 3,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001068/0.2129, allocations: 1.211 MB / 448.5 MB, free: 1.309 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0009252/0.2138, allocations: 0.6559 MB / 449.1 MB, free: 0.6289 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.2139, allocations: 0 / 449.1 MB, free: 0.6289 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004347/0.2143, allocations: 370.5 kB / 449.5 MB, free: 248 kB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005617/0.2149, allocations: 77.69 kB / 449.6 MB, free: 172 kB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006178/0.2211, allocations: 5.043 MB / 454.6 MB, free: 10.85 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005417/0.2216, allocations: 1.034 MB / 455.6 MB, free: 9.789 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004354/0.2221, allocations: 427.3 kB / 456 MB, free: 9.371 MB / 330.7 MB Notification: Performance of SimCode: time 3.21e-07/0.2221, allocations: 0 / 456 MB, free: 9.371 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.82/4.042, allocations: 23.18 MB / 479.2 MB, free: 2.156 MB / 346.7 MB (rm -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.GenerationOfFMUs_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Electrical_Analog_Examples_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Electrical_Analog_Examples_GenerationOfFMUs.fmu > Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches