Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.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.CharacteristicIdealDiodes,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes",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.0009876/0.0009876, allocations: 95.73 kB / 16.3 MB, free: 6.461 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: 180.7 kB / 17.2 MB, free: 6.34 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.2 MB / 241.1 MB, free: 5.461 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003252/0.0003254, allocations: 7.375 kB / 300.8 MB, free: 5.988 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1209/0.1213, allocations: 50.42 MB / 351.2 MB, free: 11.65 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.003731/0.1251, allocations: 2.799 MB / 354 MB, free: 8.836 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001642/0.1268, allocations: 0.7562 MB / 354.8 MB, free: 8.074 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002123/0.127, allocations: 4 kB / 354.8 MB, free: 8.07 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001094/0.1271, allocations: 51.59 kB / 354.8 MB, free: 8.02 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003165/0.1275, allocations: 163.5 kB / 355 MB, free: 7.859 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002507/0.1277, allocations: 79.84 kB / 355.1 MB, free: 7.781 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004199/0.1281, allocations: 347.1 kB / 355.4 MB, free: 7.441 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002192/0.1284, allocations: 106.7 kB / 355.5 MB, free: 7.328 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002225/0.1286, allocations: 155.4 kB / 355.7 MB, free: 7.176 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002355/0.1288, allocations: 183.2 kB / 355.8 MB, free: 6.996 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.564e-05/0.1289, allocations: 20 kB / 355.9 MB, free: 6.977 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.416e-05/0.129, allocations: 20 kB / 355.9 MB, free: 6.957 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.746e-05/0.129, allocations: 71.67 kB / 356 MB, free: 6.887 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.479e-05/0.1291, allocations: 105.5 kB / 356.1 MB, free: 6.777 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003184/0.1294, allocations: 343 kB / 356.4 MB, free: 6.441 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.056e-06/0.1295, allocations: 0 / 356.4 MB, free: 6.441 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.1295, allocations: 0 / 356.4 MB, free: 6.441 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.261e-05/0.1295, allocations: 0 / 356.4 MB, free: 6.441 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.001111/0.1306, allocations: 0.6583 MB / 357.1 MB, free: 5.734 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.839e-05/0.1307, allocations: 12.03 kB / 357.1 MB, free: 5.723 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001071/0.1308, allocations: 66.53 kB / 357.1 MB, free: 5.648 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.775e-05/0.1309, allocations: 51.39 kB / 357.2 MB, free: 5.598 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004017/0.1313, allocations: 302.2 kB / 357.5 MB, free: 5.266 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.602e-05/0.1313, allocations: 32.66 kB / 357.5 MB, free: 5.234 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.282e-05/0.1314, allocations: 28 kB / 357.5 MB, free: 5.207 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000591/0.132, allocations: 354.7 kB / 357.9 MB, free: 4.848 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.389e-05/0.132, allocations: 4 kB / 357.9 MB, free: 4.844 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.34e-05/0.132, allocations: 12 kB / 357.9 MB, free: 4.832 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.355e-05/0.1321, allocations: 15.89 kB / 357.9 MB, free: 4.816 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005281/0.1326, allocations: 278.4 kB / 358.2 MB, free: 4.539 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002077/0.1347, allocations: 1.434 MB / 359.6 MB, free: 3.004 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004241/0.1351, allocations: 234.3 kB / 359.8 MB, free: 2.766 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.209e-05/0.1352, allocations: 0 / 359.8 MB, free: 2.766 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.584e-05/0.1352, allocations: 46.5 kB / 359.9 MB, free: 2.711 MB / 286.1 MB Notification: Performance of pre-optimization done (n=24): time 1.432e-06/0.1352, allocations: 0 / 359.9 MB, free: 2.711 MB / 286.1 MB Notification: Performance of matching and sorting (n=24): time 0.001535/0.1368, allocations: 0.7104 MB / 360.6 MB, free: 1.934 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.401e-05/0.1368, allocations: 51.41 kB / 360.7 MB, free: 1.871 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003178/0.1371, allocations: 304.6 kB / 361 MB, free: 1.566 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.886e-05/0.1372, allocations: 29.7 kB / 361 MB, free: 1.531 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001457/0.1373, allocations: 208.1 kB / 361.2 MB, free: 1.32 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.217e-05/0.1374, allocations: 74.92 kB / 361.3 MB, free: 1.246 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.272e-05/0.1374, allocations: 8 kB / 361.3 MB, free: 1.238 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001177/0.1375, allocations: 338.8 kB / 361.6 MB, free: 0.8984 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002134/0.1378, allocations: 87.95 kB / 361.7 MB, free: 0.8125 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002264/0.138, allocations: 128.2 kB / 361.8 MB, free: 0.6719 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002018/0.1382, allocations: 83.98 kB / 361.9 MB, free: 0.5898 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.388e-06/0.1382, allocations: 7.953 kB / 361.9 MB, free: 0.582 MB / 286.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007363/0.139, allocations: 375.5 kB / 362.3 MB, free: 204 kB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.213e-05/0.139, allocations: 10.97 kB / 362.3 MB, free: 196 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.734e-06/0.139, allocations: 4 kB / 362.3 MB, free: 192 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004147/0.1394, allocations: 118.4 kB / 362.4 MB, free: 64 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001849/0.1396, allocations: 31.97 kB / 362.4 MB, free: 32 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003761/0.1434, allocations: 4.473 MB / 366.9 MB, free: 11.15 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003372/0.1438, allocations: 31.8 kB / 366.9 MB, free: 11.12 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.42e-05/0.1438, allocations: 12 kB / 366.9 MB, free: 11.11 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 3 (Ideal.off,With_Ron_Goff.off,With_Ron_Goff_Vknee.off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 14 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 4,1 4,1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0002912/0.1441, allocations: 149.8 kB / 367.1 MB, free: 10.95 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.259e-05/0.1442, allocations: 35.58 kB / 367.1 MB, free: 10.92 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.769e-05/0.1443, allocations: 39.17 kB / 367.2 MB, free: 10.88 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-06/0.1443, allocations: 0 / 367.2 MB, free: 10.88 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/0.1443, allocations: 0 / 367.2 MB, free: 10.88 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.955e-06/0.1443, allocations: 7.984 kB / 367.2 MB, free: 10.87 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005159/0.1448, allocations: 373.2 kB / 367.5 MB, free: 10.46 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.236e-06/0.1448, allocations: 128 / 367.5 MB, free: 10.46 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001245/0.145, allocations: 31.98 kB / 367.6 MB, free: 10.43 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003466/0.1453, allocations: 114.4 kB / 367.7 MB, free: 10.3 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.136e-05/0.1454, allocations: 15.94 kB / 367.7 MB, free: 10.29 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003719/0.1491, allocations: 4.474 MB / 372.2 MB, free: 5.422 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/0.1491, allocations: 0 / 372.2 MB, free: 5.422 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006945/0.1498, allocations: 413.6 kB / 372.6 MB, free: 4.992 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001387/0.15, allocations: 128.6 kB / 372.7 MB, free: 4.848 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.695e-05/0.15, allocations: 3.953 kB / 372.7 MB, free: 4.844 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002303/0.1502, allocations: 27.98 kB / 372.7 MB, free: 4.816 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001017/0.1504, allocations: 27.95 kB / 372.8 MB, free: 4.789 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.111e-05/0.1504, allocations: 11.94 kB / 372.8 MB, free: 4.777 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002304/0.1506, allocations: 215.1 kB / 373 MB, free: 4.566 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1506, allocations: 0 / 373 MB, free: 4.566 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007114/0.1513, allocations: 111.8 kB / 373.1 MB, free: 4.457 MB / 302.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: 3 (Ideal.off,With_Ron_Goff.off,With_Ron_Goff_Vknee.off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 9 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 4,1 4,1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009825/0.1523, allocations: 0.9476 MB / 374 MB, free: 3.477 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009925/0.1533, allocations: 0.5855 MB / 374.6 MB, free: 2.852 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.536e-06/0.1534, allocations: 0 / 374.6 MB, free: 2.852 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005658/0.1539, allocations: 481.1 kB / 375.1 MB, free: 2.344 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00043/0.1544, allocations: 56.95 kB / 375.1 MB, free: 2.289 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00336/0.1577, allocations: 2.513 MB / 377.7 MB, free: 15.69 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005001/0.1583, allocations: 0.8028 MB / 378.5 MB, free: 14.86 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001564/0.1585, allocations: 30.95 kB / 378.5 MB, free: 14.83 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000168/0.1586, allocations: 107.4 kB / 378.6 MB, free: 14.73 MB / 318.1 MB Notification: Performance of SimCode: time 1.382e-06/0.1586, allocations: 0 / 378.6 MB, free: 14.73 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02479/0.1834, allocations: 7.554 MB / 386.1 MB, free: 7.406 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001956/0.1837, allocations: 235.1 kB / 386.4 MB, free: 7.16 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.027/2.211, allocations: 0 / 386.4 MB, free: 7.16 MB / 318.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.mat does not exist to compare? outputFormat=mat