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.001075/0.001083, allocations: 92.03 kB / 16.95 MB, free: 6.441 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.001094/0.001094, allocations: 181.2 kB / 17.84 MB, free: 6.008 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.923/1.923, allocations: 205.4 MB / 224 MB, free: 13.15 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.0004995/0.0004995, allocations: 8 kB / 280.9 MB, free: 3.645 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1101/0.1107, allocations: 47.58 MB / 328.5 MB, free: 3.992 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.GenerationOfFMUs): time 0.005688/0.1164, allocations: 5.117 MB / 333.6 MB, free: 14.85 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003322/0.1198, allocations: 1.614 MB / 335.2 MB, free: 13.23 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004647/0.1202, allocations: 27.88 kB / 335.2 MB, free: 13.2 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003996/0.1207, allocations: 170.5 kB / 335.4 MB, free: 13.03 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003615/0.121, allocations: 178.4 kB / 335.6 MB, free: 12.86 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007741/0.1218, allocations: 335.6 kB / 335.9 MB, free: 12.53 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001176/0.123, allocations: 1.219 MB / 337.1 MB, free: 11.3 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007062/0.1237, allocations: 457.9 kB / 337.5 MB, free: 10.84 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004253/0.1241, allocations: 354.3 kB / 337.9 MB, free: 10.49 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000437/0.1246, allocations: 389.7 kB / 338.3 MB, free: 10.11 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 8.625e-05/0.1247, allocations: 48 kB / 338.3 MB, free: 10.06 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001714/0.1249, allocations: 67.98 kB / 338.4 MB, free: 9.996 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001573/0.125, allocations: 175.2 kB / 338.6 MB, free: 9.824 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002049/0.1252, allocations: 241 kB / 338.8 MB, free: 9.582 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001084/0.1263, allocations: 1.161 MB / 340 MB, free: 8.418 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.284e-06/0.1264, allocations: 0 / 340 MB, free: 8.418 MB / 286.1 MB Notification: Performance of FrontEnd: time 5.69e-06/0.1264, allocations: 0 / 340 MB, free: 8.418 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.425e-05/0.1264, allocations: 0 / 340 MB, free: 8.418 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.001889/0.1283, allocations: 1.244 MB / 341.2 MB, free: 7.121 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.54e-05/0.1284, allocations: 12.03 kB / 341.2 MB, free: 7.109 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002139/0.1286, allocations: 181.7 kB / 341.4 MB, free: 6.922 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001967/0.1288, allocations: 138.3 kB / 341.5 MB, free: 6.785 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009646/0.1298, allocations: 0.6892 MB / 342.2 MB, free: 6.055 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.817e-05/0.1298, allocations: 94.36 kB / 342.3 MB, free: 5.961 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001498/0.13, allocations: 123.9 kB / 342.4 MB, free: 5.84 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002079/0.1321, allocations: 1.26 MB / 343.7 MB, free: 4.41 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.598e-05/0.1321, allocations: 11.88 kB / 343.7 MB, free: 4.398 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.965e-05/0.1322, allocations: 56 kB / 343.7 MB, free: 4.344 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.438e-05/0.1323, allocations: 32 kB / 343.8 MB, free: 4.312 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001264/0.1335, allocations: 0.689 MB / 344.5 MB, free: 3.621 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006324/0.1399, allocations: 6.824 MB / 351.3 MB, free: 12.46 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006672/0.1406, allocations: 265.5 kB / 351.6 MB, free: 12.18 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003677/0.1409, allocations: 193.9 kB / 351.7 MB, free: 11.98 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002416/0.1412, allocations: 85.11 kB / 351.8 MB, free: 11.88 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.631e-05/0.1412, allocations: 34.5 kB / 351.9 MB, free: 11.84 MB / 302.1 MB Notification: Performance of pre-optimization done (n=27): time 2.775e-06/0.1413, allocations: 4 kB / 351.9 MB, free: 11.84 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.002696/0.144, allocations: 1.415 MB / 353.3 MB, free: 10.31 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.251e-05/0.1441, allocations: 81.11 kB / 353.4 MB, free: 10.21 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008025/0.1449, allocations: 0.6491 MB / 354 MB, free: 9.559 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.765e-05/0.1449, allocations: 29.7 kB / 354 MB, free: 9.523 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005454/0.1455, allocations: 0.6798 MB / 354.7 MB, free: 8.832 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001228/0.1456, allocations: 122.4 kB / 354.8 MB, free: 8.711 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.009e-05/0.1456, allocations: 16 kB / 354.9 MB, free: 8.695 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0003167/0.146, allocations: 394.7 kB / 355.2 MB, free: 8.301 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003034/0.1463, allocations: 137.9 kB / 355.4 MB, free: 8.168 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008238/0.1471, allocations: 0.5546 MB / 355.9 MB, free: 7.418 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.0007983/0.1479, allocations: 433.9 kB / 356.3 MB, free: 6.957 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.032e-06/0.1479, allocations: 8 kB / 356.4 MB, free: 6.949 MB / 302.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001501/0.1495, allocations: 0.7993 MB / 357.2 MB, free: 6.137 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.763e-05/0.1495, allocations: 8 kB / 357.2 MB, free: 6.129 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.164e-05/0.1495, allocations: 16 kB / 357.2 MB, free: 6.113 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002675/0.1498, allocations: 77.69 kB / 357.3 MB, free: 6.031 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005462/0.1504, allocations: 183.7 kB / 357.4 MB, free: 5.852 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00262/0.153, allocations: 2.99 MB / 360.4 MB, free: 2.59 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003769/0.1534, allocations: 35.98 kB / 360.5 MB, free: 2.555 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.767e-05/0.1535, allocations: 44.06 kB / 360.5 MB, free: 2.512 MB / 302.1 MB Warning: The initial conditions are over specified. The following 2 initial equations are redundant, so they are removed from the initialization sytem: 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 (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.0004586/0.1539, allocations: 273.4 kB / 360.8 MB, free: 2.234 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001107/0.1541, allocations: 75 kB / 360.8 MB, free: 2.16 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001177/0.1542, allocations: 78.41 kB / 360.9 MB, free: 2.078 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-06/0.1542, allocations: 0 / 360.9 MB, free: 2.078 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.02e-05/0.1542, allocations: 7.953 kB / 360.9 MB, free: 2.07 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.25e-06/0.1542, allocations: 144 / 360.9 MB, free: 2.07 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00189/0.1561, allocations: 1.255 MB / 362.2 MB, free: 0.7422 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.969e-06/0.1561, allocations: 4 kB / 362.2 MB, free: 0.7383 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003153/0.1565, allocations: 67.91 kB / 362.3 MB, free: 0.6719 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001442/0.1566, allocations: 57.61 kB / 362.3 MB, free: 0.6094 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.185e-05/0.1567, allocations: 8 kB / 362.3 MB, free: 0.6016 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002256/0.1589, allocations: 2.78 MB / 365.1 MB, free: 13.56 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.1589, allocations: 32 / 365.1 MB, free: 13.56 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008749/0.1598, allocations: 0.6545 MB / 365.8 MB, free: 12.88 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001124/0.1599, allocations: 140.2 kB / 365.9 MB, free: 12.72 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.929e-05/0.16, allocations: 8 kB / 365.9 MB, free: 12.71 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002355/0.1602, allocations: 23.92 kB / 365.9 MB, free: 12.69 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.735e-05/0.1603, allocations: 27.92 kB / 365.9 MB, free: 12.66 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.79e-05/0.1604, allocations: 12 kB / 366 MB, free: 12.65 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0005441/0.1609, allocations: 431 kB / 366.4 MB, free: 12.23 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.1609, allocations: 0 / 366.4 MB, free: 12.23 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0009506/0.1619, allocations: 156 kB / 366.5 MB, free: 12.08 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 (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.001268/0.1631, allocations: 1.197 MB / 367.7 MB, free: 10.84 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001083/0.1642, allocations: 0.6553 MB / 368.4 MB, free: 10.16 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.1643, allocations: 0 / 368.4 MB, free: 10.16 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004909/0.1648, allocations: 369.1 kB / 368.7 MB, free: 9.773 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000576/0.1653, allocations: 83.92 kB / 368.8 MB, free: 9.695 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007687/0.173, allocations: 5.001 MB / 373.8 MB, free: 4.418 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007505/0.1738, allocations: 1.034 MB / 374.9 MB, free: 3.355 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003274/0.1742, allocations: 86.02 kB / 374.9 MB, free: 3.27 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005214/0.1747, allocations: 419.3 kB / 375.4 MB, free: 2.859 MB / 318.1 MB Notification: Performance of SimCode: time 1.503e-06/0.1747, allocations: 3.938 kB / 375.4 MB, free: 2.855 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2285/0.4032, allocations: 12.47 MB / 387.8 MB, free: 48.11 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001608/0.4034, allocations: 211.5 kB / 388 MB, free: 47.88 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.441/2.844, allocations: 0 / 388 MB, free: 47.88 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/linux/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) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Analog.Examples.GenerationOfFMUs_res.mat does not exist to compare? outputFormat=mat