Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.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.Resistor,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_Resistor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.Resistor,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_Resistor",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.001417/0.001417, allocations: 92.27 kB / 16.3 MB, free: 5.996 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.001707/0.001707, allocations: 185 kB / 17.2 MB, free: 5.914 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.659/1.659, allocations: 223.2 MB / 241.1 MB, free: 5.375 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003136/0.0003137, allocations: 5.906 kB / 300.8 MB, free: 6.047 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1135/0.1139, allocations: 50.42 MB / 351.2 MB, free: 11.61 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Resistor): time 0.002617/0.1165, allocations: 1.723 MB / 353 MB, free: 9.875 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00108/0.1176, allocations: 0.5302 MB / 353.5 MB, free: 9.34 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000147/0.1178, allocations: 0 / 353.5 MB, free: 9.34 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 5.937e-05/0.1179, allocations: 19.84 kB / 353.5 MB, free: 9.32 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001703/0.1181, allocations: 39.91 kB / 353.5 MB, free: 9.281 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002327/0.1183, allocations: 31.95 kB / 353.6 MB, free: 9.25 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002616/0.1186, allocations: 111.7 kB / 353.7 MB, free: 9.141 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001582/0.1188, allocations: 41.45 kB / 353.7 MB, free: 9.094 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001309/0.1189, allocations: 43.86 kB / 353.8 MB, free: 9.051 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001358/0.119, allocations: 59.75 kB / 353.8 MB, free: 8.992 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.444e-05/0.1191, allocations: 15.94 kB / 353.8 MB, free: 8.977 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.758e-05/0.1192, allocations: 8 kB / 353.8 MB, free: 8.969 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.628e-05/0.1192, allocations: 23.86 kB / 353.9 MB, free: 8.945 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.562e-05/0.1193, allocations: 49.64 kB / 353.9 MB, free: 8.891 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002269/0.1195, allocations: 115.7 kB / 354 MB, free: 8.777 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.1196, allocations: 0 / 354 MB, free: 8.777 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.605e-06/0.1196, allocations: 0 / 354 MB, free: 8.777 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.07e-05/0.1196, allocations: 0 / 354 MB, free: 8.777 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: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0008331/0.1204, allocations: 423.1 kB / 354.4 MB, free: 8.312 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.307e-05/0.1205, allocations: 12.03 kB / 354.5 MB, free: 8.301 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000102/0.1206, allocations: 50.5 kB / 354.5 MB, free: 8.242 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000185/0.1208, allocations: 15.81 kB / 354.5 MB, free: 8.227 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000361/0.1212, allocations: 206.8 kB / 354.7 MB, free: 7.984 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.998e-05/0.1212, allocations: 8.234 kB / 354.7 MB, free: 7.977 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.16e-05/0.1212, allocations: 8 kB / 354.7 MB, free: 7.969 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003636/0.1216, allocations: 123.5 kB / 354.9 MB, free: 7.844 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.238e-05/0.1216, allocations: 0 / 354.9 MB, free: 7.844 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.701e-05/0.1217, allocations: 8 kB / 354.9 MB, free: 7.836 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.559e-05/0.1217, allocations: 11.88 kB / 354.9 MB, free: 7.824 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000236/0.1219, allocations: 80.67 kB / 355 MB, free: 7.746 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001178/0.1231, allocations: 0.6057 MB / 355.6 MB, free: 7.062 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003132/0.1234, allocations: 82.62 kB / 355.6 MB, free: 6.973 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.942e-05/0.1235, allocations: 8.125 kB / 355.7 MB, free: 6.965 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.92e-05/0.1235, allocations: 34.56 kB / 355.7 MB, free: 6.922 MB / 286.1 MB Notification: Performance of pre-optimization done (n=6): time 1.382e-06/0.1235, allocations: 0 / 355.7 MB, free: 6.922 MB / 286.1 MB Notification: Performance of matching and sorting (n=6): time 0.0007398/0.1243, allocations: 263.4 kB / 355.9 MB, free: 6.637 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.613e-05/0.1243, allocations: 51.41 kB / 356 MB, free: 6.574 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001427/0.1245, allocations: 152.7 kB / 356.1 MB, free: 6.418 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.074e-05/0.1245, allocations: 25.7 kB / 356.2 MB, free: 6.387 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.611e-05/0.1246, allocations: 127.9 kB / 356.3 MB, free: 6.254 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.204e-05/0.1246, allocations: 23.69 kB / 356.3 MB, free: 6.23 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.73e-06/0.1246, allocations: 0 / 356.3 MB, free: 6.23 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001426/0.1248, allocations: 330.7 kB / 356.6 MB, free: 5.898 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.58e-05/0.1249, allocations: 20 kB / 356.7 MB, free: 5.879 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.628e-05/0.125, allocations: 42.56 kB / 356.7 MB, free: 5.828 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.572e-05/0.1251, allocations: 31.98 kB / 356.7 MB, free: 5.797 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.1251, allocations: 0 / 356.7 MB, free: 5.797 MB / 286.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002939/0.1254, allocations: 134.5 kB / 356.9 MB, free: 5.656 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.388e-05/0.1254, allocations: 11.98 kB / 356.9 MB, free: 5.645 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.693e-06/0.1254, allocations: 4.062 kB / 356.9 MB, free: 5.641 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002134/0.1256, allocations: 40.8 kB / 356.9 MB, free: 5.598 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.759e-05/0.1257, allocations: 11.98 kB / 356.9 MB, free: 5.586 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002087/0.1278, allocations: 1.521 MB / 358.4 MB, free: 3.93 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001022/0.1279, allocations: 7.906 kB / 358.5 MB, free: 3.922 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.31e-05/0.128, allocations: 4 kB / 358.5 MB, free: 3.918 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (5): * Single equations (assignments): 4 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0001806/0.1281, allocations: 129.8 kB / 358.6 MB, free: 3.781 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.593e-05/0.1282, allocations: 15.86 kB / 358.6 MB, free: 3.766 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.623e-05/0.1282, allocations: 8.906 kB / 358.6 MB, free: 3.758 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.384e-06/0.1282, allocations: 0 / 358.6 MB, free: 3.758 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.132e-06/0.1283, allocations: 7.938 kB / 358.6 MB, free: 3.75 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.25e-06/0.1283, allocations: 0 / 358.6 MB, free: 3.75 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003489/0.1286, allocations: 217.5 kB / 358.8 MB, free: 3.488 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.845e-06/0.1286, allocations: 0 / 358.8 MB, free: 3.488 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.437e-05/0.1287, allocations: 8.109 kB / 358.8 MB, free: 3.48 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001377/0.1288, allocations: 44.8 kB / 358.9 MB, free: 3.434 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.866e-05/0.1289, allocations: 0 / 358.9 MB, free: 3.434 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001431/0.1303, allocations: 1.506 MB / 360.4 MB, free: 1.793 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.1303, allocations: 0 / 360.4 MB, free: 1.793 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003188/0.1307, allocations: 220.3 kB / 360.6 MB, free: 1.559 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.945e-05/0.1307, allocations: 92.94 kB / 360.7 MB, free: 1.449 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.507e-05/0.1307, allocations: 0 / 360.7 MB, free: 1.449 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001085/0.1309, allocations: 8 kB / 360.7 MB, free: 1.441 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.147e-05/0.1309, allocations: 11.94 kB / 360.7 MB, free: 1.43 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.474e-06/0.1309, allocations: 4.188 kB / 360.7 MB, free: 1.426 MB / 286.1 MB Notification: Performance of sorting global known variables: time 9.433e-05/0.131, allocations: 107.2 kB / 360.8 MB, free: 1.32 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.131, allocations: 0 / 360.8 MB, free: 1.32 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003747/0.1314, allocations: 43.91 kB / 360.9 MB, free: 1.277 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 simulation (2): * Single equations (assignments): 1 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006018/0.132, allocations: 0.7524 MB / 361.6 MB, free: 0.4961 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003948/0.1324, allocations: 194.5 kB / 361.8 MB, free: 300 kB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.1324, allocations: 0 / 361.8 MB, free: 300 kB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002067/0.1327, allocations: 150.6 kB / 362 MB, free: 136 kB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002209/0.1329, allocations: 18.31 kB / 362 MB, free: 120 kB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001407/0.1343, allocations: 1.103 MB / 363.1 MB, free: 14.95 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002873/0.1346, allocations: 0.7082 MB / 363.8 MB, free: 14.21 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.842e-05/0.1347, allocations: 12.42 kB / 363.8 MB, free: 14.2 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.553e-05/0.1347, allocations: 31.42 kB / 363.8 MB, free: 14.17 MB / 302.1 MB Notification: Performance of SimCode: time 5.81e-07/0.1347, allocations: 0 / 363.8 MB, free: 14.17 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01564/0.1504, allocations: 2.569 MB / 366.4 MB, free: 11.75 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001898/0.1506, allocations: 199.2 kB / 366.6 MB, free: 11.51 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.845/1.995, allocations: 0 / 366.6 MB, free: 11.51 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_Resistor_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_Resistor.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor_res.mat does not exist to compare? outputFormat=mat