Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_3_2_3_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 3.2.3+maint.om/package.mo): time 0.002368/0.002374, allocations: 187.5 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.55/2.55, allocations: 205.4 MB / 222.5 MB, free: 13.76 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00155/0.00155, allocations: 94.86 kB / 270.9 MB, free: 13.29 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006031/0.0006034, allocations: 8 kB / 327.1 MB, free: 14.99 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1368/0.1374, allocations: 47.58 MB / 374.6 MB, free: 15.33 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.GenerationOfFMUs): time 0.01307/0.1506, allocations: 4.908 MB / 379.5 MB, free: 10.4 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.006149/0.1568, allocations: 1.653 MB / 381.2 MB, free: 8.738 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001296/0.1581, allocations: 31.81 kB / 381.2 MB, free: 8.707 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005375/0.1587, allocations: 118.9 kB / 381.3 MB, free: 8.59 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001598/0.1603, allocations: 267.1 kB / 381.6 MB, free: 8.328 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002082/0.1625, allocations: 323.6 kB / 381.9 MB, free: 8.012 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.003412/0.1659, allocations: 0.8933 MB / 382.8 MB, free: 7.117 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001678/0.1677, allocations: 461.9 kB / 383.3 MB, free: 6.648 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001268/0.169, allocations: 354.3 kB / 383.6 MB, free: 6.301 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001206/0.1703, allocations: 393.7 kB / 384 MB, free: 5.914 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004406/0.1708, allocations: 48 kB / 384 MB, free: 5.867 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005882/0.1714, allocations: 71.92 kB / 384.1 MB, free: 5.797 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003635/0.1718, allocations: 171.2 kB / 384.3 MB, free: 5.629 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005635/0.1724, allocations: 237 kB / 384.5 MB, free: 5.391 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002936/0.1754, allocations: 1.157 MB / 385.7 MB, free: 4.23 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.131e-06/0.1755, allocations: 0 / 385.7 MB, free: 4.23 MB / 282.7 MB Notification: Performance of FrontEnd: time 4.068e-06/0.1755, allocations: 0 / 385.7 MB, free: 4.23 MB / 282.7 MB Notification: Performance of Transformations before backend: time 7.371e-05/0.1756, allocations: 0 / 385.7 MB, free: 4.23 MB / 282.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.004817/0.1804, allocations: 1.244 MB / 386.9 MB, free: 2.934 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.532e-05/0.1805, allocations: 8.031 kB / 386.9 MB, free: 2.926 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006157/0.1811, allocations: 181.7 kB / 387.1 MB, free: 2.738 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004876/0.1817, allocations: 142.3 kB / 387.2 MB, free: 2.598 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002206/0.1839, allocations: 0.697 MB / 387.9 MB, free: 1.859 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001148/0.1841, allocations: 94.36 kB / 388 MB, free: 1.766 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002727/0.1844, allocations: 119.9 kB / 388.1 MB, free: 1.648 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003401/0.1878, allocations: 1.252 MB / 389.4 MB, free: 232 kB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.126e-05/0.1879, allocations: 7.938 kB / 389.4 MB, free: 224 kB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001622/0.1881, allocations: 48 kB / 389.4 MB, free: 176 kB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.56e-05/0.1881, allocations: 32 kB / 389.5 MB, free: 144 kB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2558/0.4439, allocations: 0.6875 MB / 390.2 MB, free: 19.73 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008562/0.4525, allocations: 6.821 MB / 397 MB, free: 14.48 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001094/0.4536, allocations: 276.3 kB / 397.3 MB, free: 14.34 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001734/0.4539, allocations: 86.12 kB / 397.3 MB, free: 14.25 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.416e-05/0.4539, allocations: 32.75 kB / 397.4 MB, free: 14.21 MB / 282.7 MB Notification: Performance of pre-optimization done (n=27): time 4.037e-06/0.4539, allocations: 5.375 kB / 397.4 MB, free: 14.21 MB / 282.7 MB Notification: Performance of matching and sorting (n=29): time 0.004601/0.4585, allocations: 1.418 MB / 398.8 MB, free: 13.17 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.188e-05/0.4586, allocations: 81.89 kB / 398.9 MB, free: 13.08 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001216/0.4598, allocations: 0.647 MB / 399.5 MB, free: 12.79 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 6.606e-05/0.4599, allocations: 31.17 kB / 399.6 MB, free: 12.75 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004644/0.4604, allocations: 0.7041 MB / 400.3 MB, free: 12.17 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001422/0.4606, allocations: 117.5 kB / 400.4 MB, free: 12.08 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.876e-05/0.4606, allocations: 15.66 kB / 400.4 MB, free: 12.07 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 9.434e-05/0.4607, allocations: 338.6 kB / 400.7 MB, free: 11.75 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004936/0.4612, allocations: 150 kB / 400.9 MB, free: 11.7 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006557/0.4619, allocations: 0.5515 MB / 401.4 MB, free: 11.09 MB / 282.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: 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.0009738/0.4629, allocations: 446.6 kB / 401.9 MB, free: 10.77 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.105e-05/0.4629, allocations: 4.5 kB / 401.9 MB, free: 10.77 MB / 282.7 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.00225/0.4652, allocations: 0.7487 MB / 402.6 MB, free: 10.44 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.49e-05/0.4653, allocations: 12.88 kB / 402.6 MB, free: 10.44 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.927e-05/0.4653, allocations: 16.52 kB / 402.6 MB, free: 10.44 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003827/0.4657, allocations: 91.62 kB / 402.7 MB, free: 10.4 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001072/0.4668, allocations: 187.5 kB / 402.9 MB, free: 10.38 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002987/0.4698, allocations: 2.986 MB / 405.9 MB, free: 7.469 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007781/0.4706, allocations: 42.17 kB / 405.9 MB, free: 7.449 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.609e-05/0.4707, allocations: 48.42 kB / 406 MB, free: 7.438 MB / 282.7 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.0006629/0.4714, allocations: 267.9 kB / 406.2 MB, free: 7.227 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001799/0.4716, allocations: 78.91 kB / 406.3 MB, free: 7.184 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001541/0.4718, allocations: 70.39 kB / 406.4 MB, free: 7.145 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.156e-06/0.4718, allocations: 3.469 kB / 406.4 MB, free: 7.145 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.303e-05/0.4718, allocations: 5.344 kB / 406.4 MB, free: 7.141 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.036e-05/0.4718, allocations: 3.25 kB / 406.4 MB, free: 7.141 MB / 282.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003003/0.4748, allocations: 1.357 MB / 407.8 MB, free: 6.281 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.116e-05/0.4749, allocations: 2.031 kB / 407.8 MB, free: 6.281 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006762/0.4756, allocations: 66.08 kB / 407.8 MB, free: 6.277 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002794/0.4759, allocations: 56.47 kB / 407.9 MB, free: 6.25 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.692e-05/0.476, allocations: 7.672 kB / 407.9 MB, free: 6.246 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002271/0.4782, allocations: 2.799 MB / 410.7 MB, free: 3.457 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.316e-06/0.4783, allocations: 3.188 kB / 410.7 MB, free: 3.457 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001492/0.4798, allocations: 0.6821 MB / 411.4 MB, free: 2.984 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000295/0.4801, allocations: 134.5 kB / 411.5 MB, free: 2.852 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001238/0.4803, allocations: 13.08 kB / 411.5 MB, free: 2.844 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004483/0.4807, allocations: 17.81 kB / 411.5 MB, free: 2.84 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001211/0.4809, allocations: 27.12 kB / 411.6 MB, free: 2.832 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.203e-05/0.4809, allocations: 8.422 kB / 411.6 MB, free: 2.832 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0008364/0.4818, allocations: 430.8 kB / 412 MB, free: 2.641 MB / 282.7 MB Notification: Performance of sort global known variables: time 5.71e-07/0.4818, allocations: 0 / 412 MB, free: 2.641 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.001517/0.4833, allocations: 155.9 kB / 412.1 MB, free: 2.625 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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.001941/0.4853, allocations: 1.437 MB / 413.6 MB, free: 1.422 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001748/0.4871, allocations: 0.6631 MB / 414.2 MB, free: 1.043 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 7.785e-06/0.4871, allocations: 0 / 414.2 MB, free: 1.043 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009038/0.488, allocations: 371.1 kB / 414.6 MB, free: 0.7695 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007292/0.4888, allocations: 71.19 kB / 414.7 MB, free: 0.7344 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01656/0.5054, allocations: 14.66 MB / 429.3 MB, free: 3.82 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008873/0.5063, allocations: 1.061 MB / 430.4 MB, free: 2.949 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008504/0.5072, allocations: 427.3 kB / 430.8 MB, free: 2.574 MB / 298.7 MB Notification: Performance of SimCode: time 1.132e-06/0.5072, allocations: 1.375 kB / 430.8 MB, free: 2.574 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.966/3.473, allocations: 23.16 MB / 454 MB, free: 13.59 MB / 330.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.GenerationOfFMUs_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_GenerationOfFMUs.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.GenerationOfFMUs_res.mat does not exist to compare? outputFormat=mat