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.001589/0.001589, allocations: 104.6 kB / 17.16 MB, free: 6.316 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.001782/0.001782, allocations: 190 kB / 18.07 MB, free: 5.414 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.578/1.578, allocations: 205.1 MB / 223.9 MB, free: 12.48 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.001257/0.001257, allocations: 47.92 kB / 280.1 MB, free: 3.48 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1403/0.1415, allocations: 46.62 MB / 326.7 MB, free: 4.793 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.GenerationOfFMUs): time 0.008879/0.1505, allocations: 5.941 MB / 332.6 MB, free: 14.81 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.004461/0.1551, allocations: 1.641 MB / 334.3 MB, free: 13.16 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001394/0.1565, allocations: 31.88 kB / 334.3 MB, free: 13.13 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007297/0.1573, allocations: 190.5 kB / 334.5 MB, free: 12.95 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007449/0.1581, allocations: 166.5 kB / 334.7 MB, free: 12.78 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001203/0.1593, allocations: 455.6 kB / 335.1 MB, free: 12.34 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001455/0.1607, allocations: 1.294 MB / 336.4 MB, free: 11.04 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008206/0.1616, allocations: 0.5491 MB / 336.9 MB, free: 10.46 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005517/0.1621, allocations: 422.1 kB / 337.4 MB, free: 10.05 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006006/0.1628, allocations: 485.2 kB / 337.8 MB, free: 9.574 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000147/0.1629, allocations: 76 kB / 337.9 MB, free: 9.5 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002611/0.1632, allocations: 87.98 kB / 338 MB, free: 9.414 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000208/0.1634, allocations: 211.1 kB / 338.2 MB, free: 9.207 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005995/0.164, allocations: 0.567 MB / 338.8 MB, free: 8.637 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001396/0.1654, allocations: 1.46 MB / 340.2 MB, free: 7.172 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.554e-06/0.1654, allocations: 0 / 340.2 MB, free: 7.172 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.1655, allocations: 0 / 340.2 MB, free: 7.172 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.823e-05/0.1655, allocations: 0 / 340.2 MB, free: 7.172 MB / 286.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.002512/0.168, allocations: 1.462 MB / 341.7 MB, free: 5.656 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.235e-05/0.1681, allocations: 8.031 kB / 341.7 MB, free: 5.648 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002144/0.1683, allocations: 181.6 kB / 341.9 MB, free: 5.461 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002228/0.1685, allocations: 138.3 kB / 342 MB, free: 5.324 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001069/0.1696, allocations: 0.7275 MB / 342.7 MB, free: 4.555 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.208e-05/0.1697, allocations: 86.41 kB / 342.8 MB, free: 4.469 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001681/0.1699, allocations: 120 kB / 342.9 MB, free: 4.352 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002078/0.172, allocations: 1.264 MB / 344.2 MB, free: 2.914 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.59e-05/0.172, allocations: 7.938 kB / 344.2 MB, free: 2.906 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.229e-05/0.1721, allocations: 52 kB / 344.3 MB, free: 2.855 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.024e-05/0.1721, allocations: 35.98 kB / 344.3 MB, free: 2.82 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001329/0.1735, allocations: 0.689 MB / 345 MB, free: 2.129 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007386/0.1809, allocations: 6.828 MB / 351.8 MB, free: 10.96 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007954/0.1817, allocations: 261.3 kB / 352.1 MB, free: 10.69 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004061/0.1822, allocations: 185.6 kB / 352.2 MB, free: 10.5 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002977/0.1825, allocations: 93.08 kB / 352.3 MB, free: 10.39 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.645e-05/0.1825, allocations: 34.56 kB / 352.4 MB, free: 10.35 MB / 302.1 MB Notification: Performance of pre-optimization done (n=27): time 3.306e-06/0.1825, allocations: 0 / 352.4 MB, free: 10.35 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.002846/0.1854, allocations: 1.393 MB / 353.8 MB, free: 8.848 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.051e-05/0.1855, allocations: 81.11 kB / 353.8 MB, free: 8.75 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008824/0.1864, allocations: 0.6608 MB / 354.5 MB, free: 8.078 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.497e-05/0.1864, allocations: 37.7 kB / 354.5 MB, free: 8.035 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005345/0.1869, allocations: 0.6758 MB / 355.2 MB, free: 7.348 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.726e-05/0.187, allocations: 118.4 kB / 355.3 MB, free: 7.23 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002024/0.1873, allocations: 142.5 kB / 355.5 MB, free: 7.086 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002486/0.1875, allocations: 382.8 kB / 355.8 MB, free: 6.703 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002827/0.1878, allocations: 149.9 kB / 356 MB, free: 6.555 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006265/0.1884, allocations: 0.5546 MB / 356.5 MB, free: 5.805 MB / 302.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.001278/0.1897, allocations: 0.9583 MB / 357.5 MB, free: 4.613 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.953e-06/0.1897, allocations: 4 kB / 357.5 MB, free: 4.609 MB / 302.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001371/0.1911, allocations: 0.7951 MB / 358.3 MB, free: 3.801 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.196e-05/0.1912, allocations: 12 kB / 358.3 MB, free: 3.789 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.831e-05/0.1912, allocations: 12 kB / 358.3 MB, free: 3.777 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000322/0.1915, allocations: 82.23 kB / 358.4 MB, free: 3.691 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005714/0.1921, allocations: 191.7 kB / 358.6 MB, free: 3.504 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002918/0.195, allocations: 2.974 MB / 361.6 MB, free: 272 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000469/0.1955, allocations: 36.12 kB / 361.6 MB, free: 236 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.088e-05/0.1956, allocations: 44 kB / 361.6 MB, free: 192 kB / 302.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.0006154/0.1962, allocations: 277.4 kB / 361.9 MB, free: 15.91 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001396/0.1964, allocations: 75.06 kB / 362 MB, free: 15.83 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001139/0.1965, allocations: 78.33 kB / 362.1 MB, free: 15.75 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.658e-06/0.1965, allocations: 4 kB / 362.1 MB, free: 15.75 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.356e-05/0.1965, allocations: 0 / 362.1 MB, free: 15.75 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.344e-06/0.1965, allocations: 7.984 kB / 362.1 MB, free: 15.74 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001976/0.1985, allocations: 1.243 MB / 363.3 MB, free: 14.43 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.354e-06/0.1985, allocations: 4 kB / 363.3 MB, free: 14.42 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003243/0.1988, allocations: 67.83 kB / 363.4 MB, free: 14.36 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001928/0.1991, allocations: 53.69 kB / 363.4 MB, free: 14.3 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.497e-05/0.1991, allocations: 11.98 kB / 363.5 MB, free: 14.29 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002451/0.2015, allocations: 2.783 MB / 366.2 MB, free: 11.23 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.2016, allocations: 4.031 kB / 366.2 MB, free: 11.23 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009928/0.2026, allocations: 0.6388 MB / 366.9 MB, free: 10.55 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001381/0.2027, allocations: 136.2 kB / 367 MB, free: 10.4 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.078e-05/0.2028, allocations: 4.062 kB / 367 MB, free: 10.4 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002574/0.203, allocations: 19.98 kB / 367 MB, free: 10.38 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.514e-05/0.2031, allocations: 27.91 kB / 367.1 MB, free: 10.35 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.338e-05/0.2032, allocations: 15.98 kB / 367.1 MB, free: 10.34 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.000617/0.2038, allocations: 435 kB / 367.5 MB, free: 9.918 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.2038, allocations: 0 / 367.5 MB, free: 9.918 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.00104/0.2048, allocations: 160 kB / 367.7 MB, free: 9.762 MB / 318.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.001459/0.2063, allocations: 1.181 MB / 368.8 MB, free: 8.539 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001268/0.2076, allocations: 0.6444 MB / 369.5 MB, free: 7.871 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.569e-06/0.2076, allocations: 0 / 369.5 MB, free: 7.871 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005017/0.2081, allocations: 373.9 kB / 369.9 MB, free: 7.48 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005985/0.2087, allocations: 79.23 kB / 369.9 MB, free: 7.398 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2226/0.4313, allocations: 7.124 MB / 377.1 MB, free: 52.2 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008638/0.4323, allocations: 1.033 MB / 378.1 MB, free: 51.5 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004546/0.4327, allocations: 84.42 kB / 378.2 MB, free: 51.49 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005017/0.4333, allocations: 422.3 kB / 378.6 MB, free: 51.48 MB / 318.1 MB Notification: Performance of SimCode: time 1.132e-06/0.4333, allocations: 0 / 378.6 MB, free: 51.48 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7949/1.228, allocations: 11.95 MB / 390.5 MB, free: 47.89 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002274/1.228, allocations: 229.2 kB / 390.8 MB, free: 47.63 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.911/4.139, allocations: 0 / 390.8 MB, free: 47.63 MB / 318.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","../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches