Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_Modelica_Electrical_Analog_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_4_0_0_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.0009042/0.000904, allocations: 85.72 kB / 16.31 MB, free: 5.66 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.0008042/0.0008045, allocations: 182.9 kB / 17.21 MB, free: 5.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.531/1.531, allocations: 223.3 MB / 241.2 MB, free: 5.422 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000268/0.000268, allocations: 7.656 kB / 300.9 MB, free: 6.035 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1102/0.1105, allocations: 50.42 MB / 351.3 MB, free: 11.61 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.GenerationOfFMUs): time 0.005268/0.1158, allocations: 5.154 MB / 356.5 MB, free: 6.43 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002737/0.1186, allocations: 1.563 MB / 358.1 MB, free: 4.863 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005474/0.1191, allocations: 31.81 kB / 358.1 MB, free: 4.832 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003632/0.1195, allocations: 178.5 kB / 358.3 MB, free: 4.656 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003572/0.1199, allocations: 174.5 kB / 358.4 MB, free: 4.484 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007318/0.1206, allocations: 327.6 kB / 358.7 MB, free: 4.164 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001114/0.1217, allocations: 1.235 MB / 360 MB, free: 2.926 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006569/0.1224, allocations: 457.9 kB / 360.4 MB, free: 2.457 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004322/0.1228, allocations: 358.4 kB / 360.8 MB, free: 2.105 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003705/0.1232, allocations: 385.7 kB / 361.2 MB, free: 1.727 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 8.201e-05/0.1233, allocations: 52 kB / 361.2 MB, free: 1.676 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001514/0.1235, allocations: 63.98 kB / 361.3 MB, free: 1.613 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001287/0.1236, allocations: 171.2 kB / 361.4 MB, free: 1.445 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001694/0.1238, allocations: 241 kB / 361.7 MB, free: 1.203 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009048/0.1247, allocations: 1.165 MB / 362.8 MB, free: 36 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.043e-06/0.1247, allocations: 0 / 362.8 MB, free: 36 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.1247, allocations: 0 / 362.8 MB, free: 36 kB / 286.1 MB Notification: Performance of Transformations before backend: time 1.898e-05/0.1248, allocations: 0 / 362.8 MB, free: 36 kB / 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.001633/0.1264, allocations: 1.248 MB / 364.1 MB, free: 14.73 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.229e-05/0.1264, allocations: 12.03 kB / 364.1 MB, free: 14.72 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001735/0.1266, allocations: 177.7 kB / 364.3 MB, free: 14.54 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001643/0.1268, allocations: 146.3 kB / 364.4 MB, free: 14.39 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008869/0.1277, allocations: 0.6931 MB / 365.1 MB, free: 13.66 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.053e-05/0.1278, allocations: 86.41 kB / 365.2 MB, free: 13.57 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001374/0.1279, allocations: 119.9 kB / 365.3 MB, free: 13.46 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001869/0.1298, allocations: 1.264 MB / 366.6 MB, free: 12.02 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.14e-05/0.1298, allocations: 11.94 kB / 366.6 MB, free: 12.01 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.611e-05/0.1299, allocations: 52 kB / 366.6 MB, free: 11.96 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.966e-05/0.13, allocations: 35.95 kB / 366.7 MB, free: 11.92 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001227/0.1312, allocations: 0.689 MB / 367.4 MB, free: 11.23 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00612/0.1373, allocations: 6.824 MB / 374.2 MB, free: 4.07 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006908/0.1381, allocations: 269.3 kB / 374.4 MB, free: 3.789 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003359/0.1384, allocations: 193.5 kB / 374.6 MB, free: 3.594 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001622/0.1386, allocations: 85.09 kB / 374.7 MB, free: 3.492 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.02e-05/0.1386, allocations: 38.52 kB / 374.8 MB, free: 3.445 MB / 302.1 MB Notification: Performance of pre-optimization done (n=27): time 2.665e-06/0.1386, allocations: 0 / 374.8 MB, free: 3.445 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.002537/0.1412, allocations: 1.413 MB / 376.2 MB, free: 1.926 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.773e-05/0.1412, allocations: 81.11 kB / 376.2 MB, free: 1.828 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007812/0.142, allocations: 0.6491 MB / 376.9 MB, free: 1.172 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.182e-05/0.1421, allocations: 29.7 kB / 376.9 MB, free: 1.137 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004483/0.1425, allocations: 0.6798 MB / 377.6 MB, free: 456 kB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.818e-05/0.1426, allocations: 118.4 kB / 377.7 MB, free: 336 kB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.692e-05/0.1427, allocations: 16 kB / 377.7 MB, free: 320 kB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002301/0.1429, allocations: 386.8 kB / 378.1 MB, free: 15.93 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002914/0.1432, allocations: 145.9 kB / 378.3 MB, free: 15.79 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006861/0.1439, allocations: 0.5506 MB / 378.8 MB, free: 15.04 MB / 318.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.0007795/0.1447, allocations: 449.7 kB / 379.2 MB, free: 14.56 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.356e-06/0.1447, allocations: 4 kB / 379.2 MB, free: 14.56 MB / 318.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001382/0.1461, allocations: 0.7942 MB / 380 MB, free: 13.75 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.137e-05/0.1461, allocations: 16 kB / 380.1 MB, free: 13.74 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.896e-05/0.1462, allocations: 12 kB / 380.1 MB, free: 13.73 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002744/0.1465, allocations: 81.69 kB / 380.2 MB, free: 13.64 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005334/0.147, allocations: 179.7 kB / 380.3 MB, free: 13.46 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002511/0.1495, allocations: 2.982 MB / 383.3 MB, free: 10.21 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004007/0.1499, allocations: 35.98 kB / 383.3 MB, free: 10.18 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.331e-05/0.15, allocations: 44 kB / 383.4 MB, free: 10.14 MB / 318.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.000479/0.1505, allocations: 277.4 kB / 383.7 MB, free: 9.855 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001059/0.1506, allocations: 75.06 kB / 383.7 MB, free: 9.781 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001134/0.1507, allocations: 70.42 kB / 383.8 MB, free: 9.711 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.11e-06/0.1507, allocations: 7.984 kB / 383.8 MB, free: 9.703 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.696e-06/0.1507, allocations: 0 / 383.8 MB, free: 9.703 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.063e-06/0.1508, allocations: 0 / 383.8 MB, free: 9.703 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001756/0.1525, allocations: 1.269 MB / 385.1 MB, free: 8.363 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.481e-06/0.1525, allocations: 96 / 385.1 MB, free: 8.363 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003181/0.1529, allocations: 63.91 kB / 385.1 MB, free: 8.301 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001667/0.153, allocations: 61.66 kB / 385.2 MB, free: 8.234 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.375e-05/0.1531, allocations: 8 kB / 385.2 MB, free: 8.227 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002029/0.1551, allocations: 2.768 MB / 388 MB, free: 5.191 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.1551, allocations: 4.031 kB / 388 MB, free: 5.188 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008371/0.156, allocations: 0.6581 MB / 388.6 MB, free: 4.492 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001162/0.1561, allocations: 144.2 kB / 388.8 MB, free: 4.332 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.726e-05/0.1561, allocations: 8 kB / 388.8 MB, free: 4.324 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002357/0.1564, allocations: 19.98 kB / 388.8 MB, free: 4.305 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.821e-05/0.1565, allocations: 23.91 kB / 388.8 MB, free: 4.281 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.77e-05/0.1565, allocations: 8 kB / 388.8 MB, free: 4.273 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0005403/0.157, allocations: 435 kB / 389.3 MB, free: 3.852 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1571, allocations: 0 / 389.3 MB, free: 3.852 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0009155/0.158, allocations: 156 kB / 389.4 MB, free: 3.699 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.001125/0.1591, allocations: 1.193 MB / 390.6 MB, free: 2.465 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001113/0.1602, allocations: 0.6588 MB / 391.3 MB, free: 1.785 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.065e-06/0.1602, allocations: 0 / 391.3 MB, free: 1.785 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004633/0.1607, allocations: 365.2 kB / 391.6 MB, free: 1.402 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000534/0.1613, allocations: 79.5 kB / 391.7 MB, free: 1.324 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006932/0.1682, allocations: 5.008 MB / 396.7 MB, free: 12.04 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006292/0.1689, allocations: 1.034 MB / 397.7 MB, free: 10.98 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0003053/0.1692, allocations: 82.03 kB / 397.8 MB, free: 10.89 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000457/0.1697, allocations: 423.3 kB / 398.2 MB, free: 10.48 MB / 334.1 MB Notification: Performance of SimCode: time 9.92e-07/0.1697, allocations: 0 / 398.2 MB, free: 10.48 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02902/0.1987, allocations: 12.47 MB / 410.7 MB, free: 14.21 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002294/0.199, allocations: 215.6 kB / 410.9 MB, free: 13.97 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.256/2.455, allocations: 0 / 410.9 MB, free: 13.97 MB / 350.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_GenerationOfFMUs.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs_res.mat does not exist to compare? outputFormat=mat