Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001095/0.001095, allocations: 100.1 kB / 16.99 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001358/0.001358, allocations: 200.4 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.551/1.551, allocations: 227.3 MB / 245.9 MB, free: 12.02 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003197/0.0003198, allocations: 8 kB / 306.7 MB, free: 1.477 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1467/0.1471, allocations: 51.5 MB / 358.2 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.GenerationOfFMUs): time 0.005876/0.153, allocations: 4.955 MB / 363.2 MB, free: 9.004 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004156/0.1572, allocations: 1.66 MB / 364.8 MB, free: 7.34 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001262/0.1585, allocations: 35.75 kB / 364.9 MB, free: 7.305 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003522/0.1589, allocations: 126.9 kB / 365 MB, free: 7.18 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007786/0.1597, allocations: 259.1 kB / 365.2 MB, free: 6.926 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001056/0.1607, allocations: 327.6 kB / 365.5 MB, free: 6.605 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001285/0.162, allocations: 0.8855 MB / 366.4 MB, free: 5.719 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007315/0.1628, allocations: 473.8 kB / 366.9 MB, free: 5.238 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005274/0.1633, allocations: 358.4 kB / 367.2 MB, free: 4.887 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004276/0.1637, allocations: 389.7 kB / 367.6 MB, free: 4.504 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.15e-05/0.1638, allocations: 52 kB / 367.7 MB, free: 4.453 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001651/0.164, allocations: 60 kB / 367.7 MB, free: 4.395 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000139/0.1641, allocations: 175.2 kB / 367.9 MB, free: 4.223 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001843/0.1643, allocations: 241 kB / 368.1 MB, free: 3.98 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001106/0.1654, allocations: 1.161 MB / 369.3 MB, free: 2.816 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.1655, allocations: 4 kB / 369.3 MB, free: 2.812 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.396e-06/0.1655, allocations: 0 / 369.3 MB, free: 2.812 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.217e-05/0.1655, allocations: 0 / 369.3 MB, free: 2.812 MB / 302.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.002098/0.1676, allocations: 1.244 MB / 370.6 MB, free: 1.516 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.74e-05/0.1677, allocations: 12.03 kB / 370.6 MB, free: 1.504 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000218/0.1679, allocations: 177.6 kB / 370.7 MB, free: 1.32 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004011/0.1683, allocations: 170.3 kB / 370.9 MB, free: 1.152 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001104/0.1694, allocations: 0.6969 MB / 371.6 MB, free: 424 kB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.032e-05/0.1695, allocations: 86.41 kB / 371.7 MB, free: 336 kB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001508/0.1697, allocations: 120 kB / 371.8 MB, free: 216 kB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2026/0.3722, allocations: 1.247 MB / 373 MB, free: 18.52 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.779e-05/0.3723, allocations: 7.406 kB / 373.1 MB, free: 18.52 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001122/0.3725, allocations: 51.09 kB / 373.1 MB, free: 18.52 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.247e-05/0.3725, allocations: 32.8 kB / 373.1 MB, free: 18.52 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001751/0.3743, allocations: 0.6889 MB / 373.8 MB, free: 18.47 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006592/0.3809, allocations: 6.823 MB / 380.6 MB, free: 13.11 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007343/0.3816, allocations: 261.1 kB / 380.9 MB, free: 12.99 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001476/0.3818, allocations: 96.66 kB / 381 MB, free: 12.89 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.29e-05/0.3818, allocations: 33.92 kB / 381 MB, free: 12.85 MB / 302.1 MB Notification: Performance of pre-optimization done (n=27): time 3.557e-06/0.3818, allocations: 3.984 kB / 381 MB, free: 12.84 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.002524/0.3844, allocations: 1.418 MB / 382.5 MB, free: 11.81 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.514e-05/0.3844, allocations: 81.88 kB / 382.5 MB, free: 11.71 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008351/0.3853, allocations: 0.6532 MB / 383.2 MB, free: 11.42 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.233e-05/0.3853, allocations: 31.27 kB / 383.2 MB, free: 11.38 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004211/0.3857, allocations: 0.6814 MB / 383.9 MB, free: 10.85 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.61e-05/0.3858, allocations: 112.4 kB / 384 MB, free: 10.77 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.317e-05/0.3858, allocations: 16.22 kB / 384 MB, free: 10.75 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001403/0.386, allocations: 386.5 kB / 384.4 MB, free: 10.41 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002909/0.3863, allocations: 152.5 kB / 384.6 MB, free: 10.35 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004754/0.3868, allocations: 0.5479 MB / 385.1 MB, free: 9.746 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.0005806/0.3874, allocations: 451.7 kB / 385.5 MB, free: 9.426 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.846e-06/0.3874, allocations: 4.219 kB / 385.5 MB, free: 9.426 MB / 302.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001254/0.3886, allocations: 0.7978 MB / 386.3 MB, free: 9.066 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.385e-05/0.3887, allocations: 14.64 kB / 386.4 MB, free: 9.066 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.541e-05/0.3887, allocations: 15.69 kB / 386.4 MB, free: 9.066 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002337/0.3889, allocations: 81.94 kB / 386.5 MB, free: 9.035 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005922/0.3895, allocations: 185.8 kB / 386.6 MB, free: 9.012 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001817/0.3914, allocations: 3.002 MB / 389.6 MB, free: 6.09 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004573/0.3918, allocations: 34.39 kB / 389.7 MB, free: 6.078 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.49e-05/0.3919, allocations: 39.41 kB / 389.7 MB, free: 6.074 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.00053/0.3924, allocations: 273.2 kB / 390 MB, free: 5.859 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001546/0.3926, allocations: 82.66 kB / 390.1 MB, free: 5.816 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001383/0.3928, allocations: 74.52 kB / 390.1 MB, free: 5.773 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.561e-06/0.3928, allocations: 2.938 kB / 390.1 MB, free: 5.773 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.975e-05/0.3928, allocations: 3.906 kB / 390.1 MB, free: 5.773 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.158e-05/0.3928, allocations: 2.797 kB / 390.1 MB, free: 5.773 MB / 302.1 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.002533/0.3954, allocations: 1.35 MB / 391.5 MB, free: 4.922 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.588e-06/0.3954, allocations: 1.844 kB / 391.5 MB, free: 4.922 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003625/0.3957, allocations: 74.03 kB / 391.6 MB, free: 4.91 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001743/0.3959, allocations: 51.83 kB / 391.6 MB, free: 4.887 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.895e-05/0.396, allocations: 13.25 kB / 391.6 MB, free: 4.879 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001839/0.3978, allocations: 2.789 MB / 394.4 MB, free: 2.094 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.686e-06/0.3978, allocations: 1.5 kB / 394.4 MB, free: 2.094 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008912/0.3987, allocations: 0.6765 MB / 395.1 MB, free: 1.625 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000105/0.3988, allocations: 137.1 kB / 395.2 MB, free: 1.492 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.219e-05/0.3989, allocations: 11.2 kB / 395.2 MB, free: 1.484 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002494/0.3991, allocations: 22.22 kB / 395.3 MB, free: 1.477 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.135e-05/0.3992, allocations: 22.7 kB / 395.3 MB, free: 1.473 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.013e-05/0.3993, allocations: 11.62 kB / 395.3 MB, free: 1.469 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005388/0.3998, allocations: 426.7 kB / 395.7 MB, free: 1.281 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3998, allocations: 1.062 kB / 395.7 MB, free: 1.281 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001093/0.4009, allocations: 163.3 kB / 395.9 MB, free: 1.258 MB / 302.1 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.001387/0.4023, allocations: 1.439 MB / 397.3 MB, free: 60 kB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001275/0.4036, allocations: 0.6585 MB / 398 MB, free: 15.68 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.797e-06/0.4036, allocations: 1.438 kB / 398 MB, free: 15.68 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005051/0.4041, allocations: 368 kB / 398.3 MB, free: 15.41 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003904/0.4045, allocations: 75.94 kB / 398.4 MB, free: 15.37 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01212/0.4167, allocations: 14.61 MB / 413 MB, free: 2.547 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008477/0.4176, allocations: 1.062 MB / 414.1 MB, free: 1.672 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004023/0.418, allocations: 79 kB / 414.2 MB, free: 1.633 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000534/0.4185, allocations: 430.7 kB / 414.6 MB, free: 1.25 MB / 318.1 MB Notification: Performance of SimCode: time 3.106e-06/0.4185, allocations: 0 / 414.6 MB, free: 1.25 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02745/0.446, allocations: 12.43 MB / 427 MB, free: 7.449 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001722/0.4462, allocations: 207.3 kB / 427.2 MB, free: 7.203 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.272/2.718, allocations: 3.938 kB / 427.2 MB, free: 7.199 MB / 334.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.GenerationOfFMUs_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_GenerationOfFMUs.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Analog.Examples.GenerationOfFMUs_res.mat does not exist to compare? outputFormat=mat