Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.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.CharacteristicIdealDiodes,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001239/0.001239, allocations: 98.41 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001654/0.001654, allocations: 203.5 kB / 17.9 MB, free: 5.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.603/1.603, allocations: 227.3 MB / 245.9 MB, free: 10.32 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000302/0.0003021, allocations: 8 kB / 306.7 MB, free: 1.273 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1248/0.1252, allocations: 51.49 MB / 358.2 MB, free: 13.79 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.003266/0.1285, allocations: 2.814 MB / 361 MB, free: 10.96 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001532/0.13, allocations: 0.8071 MB / 361.8 MB, free: 10.14 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001577/0.1302, allocations: 8 kB / 361.8 MB, free: 10.14 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 8.592e-05/0.1303, allocations: 51.59 kB / 361.9 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002789/0.1306, allocations: 163.5 kB / 362 MB, free: 9.926 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002563/0.1308, allocations: 75.91 kB / 362.1 MB, free: 9.852 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003961/0.1313, allocations: 347.2 kB / 362.5 MB, free: 9.512 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002162/0.1315, allocations: 106.7 kB / 362.6 MB, free: 9.398 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002502/0.1317, allocations: 167.3 kB / 362.7 MB, free: 9.234 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002139/0.132, allocations: 175.2 kB / 362.9 MB, free: 9.062 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.3e-05/0.132, allocations: 27.94 kB / 362.9 MB, free: 9.035 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.111e-05/0.1321, allocations: 24 kB / 362.9 MB, free: 9.012 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.799e-05/0.1322, allocations: 67.73 kB / 363 MB, free: 8.945 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.938e-05/0.1322, allocations: 101.5 kB / 363.1 MB, free: 8.84 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000325/0.1326, allocations: 347 kB / 363.4 MB, free: 8.5 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.561e-06/0.1326, allocations: 4 kB / 363.5 MB, free: 8.496 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.775e-06/0.1326, allocations: 0 / 363.5 MB, free: 8.496 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.102e-05/0.1326, allocations: 0 / 363.5 MB, free: 8.496 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.001017/0.1337, allocations: 0.6544 MB / 364.1 MB, free: 7.793 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.501e-05/0.1337, allocations: 8.031 kB / 364.1 MB, free: 7.785 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.735e-05/0.1338, allocations: 74.53 kB / 364.2 MB, free: 7.703 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000346/0.1341, allocations: 83.39 kB / 364.3 MB, free: 7.621 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003524/0.1345, allocations: 298.2 kB / 364.6 MB, free: 7.293 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.356e-05/0.1345, allocations: 28.59 kB / 364.6 MB, free: 7.266 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.822e-05/0.1346, allocations: 35.95 kB / 364.6 MB, free: 7.23 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005888/0.1352, allocations: 354.8 kB / 365 MB, free: 6.871 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.23e-05/0.1352, allocations: 3.938 kB / 365 MB, free: 6.867 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.394e-05/0.1353, allocations: 12 kB / 365 MB, free: 6.855 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.104e-05/0.1353, allocations: 8 kB / 365 MB, free: 6.848 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005362/0.1358, allocations: 282.4 kB / 365.3 MB, free: 6.57 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00192/0.1377, allocations: 1.43 MB / 366.7 MB, free: 5.039 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004061/0.1382, allocations: 234.3 kB / 366.9 MB, free: 4.801 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.273e-05/0.1382, allocations: 7.938 kB / 366.9 MB, free: 4.793 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.652e-05/0.1382, allocations: 34.56 kB / 367 MB, free: 4.75 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 2.004e-06/0.1382, allocations: 0 / 367 MB, free: 4.75 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.001511/0.1397, allocations: 0.7174 MB / 367.7 MB, free: 3.965 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.664e-05/0.1398, allocations: 55.39 kB / 367.7 MB, free: 3.898 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003087/0.1401, allocations: 304.5 kB / 368 MB, free: 3.594 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.496e-05/0.1401, allocations: 25.7 kB / 368.1 MB, free: 3.562 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001394/0.1403, allocations: 216.1 kB / 368.3 MB, free: 3.344 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.348e-05/0.1404, allocations: 78.84 kB / 368.3 MB, free: 3.266 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.432e-05/0.1404, allocations: 8 kB / 368.4 MB, free: 3.258 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001295/0.1405, allocations: 342.8 kB / 368.7 MB, free: 2.914 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002059/0.1407, allocations: 83.97 kB / 368.8 MB, free: 2.832 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002142/0.1409, allocations: 128.2 kB / 368.9 MB, free: 2.691 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001947/0.1412, allocations: 87.92 kB / 369 MB, free: 2.605 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.1412, allocations: 0 / 369 MB, free: 2.605 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007394/0.1419, allocations: 379.4 kB / 369.4 MB, free: 2.219 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.1e-05/0.1419, allocations: 4 kB / 369.4 MB, free: 2.215 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.504e-06/0.142, allocations: 4 kB / 369.4 MB, free: 2.211 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004124/0.1424, allocations: 118.6 kB / 369.5 MB, free: 2.086 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001802/0.1426, allocations: 35.92 kB / 369.5 MB, free: 2.051 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2449/0.3875, allocations: 4.469 MB / 374 MB, free: 16.64 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003085/0.3879, allocations: 26.88 kB / 374 MB, free: 16.64 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.556e-05/0.3879, allocations: 7.234 kB / 374 MB, free: 16.64 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.0001963/0.3881, allocations: 144.4 kB / 374.2 MB, free: 16.53 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.083e-05/0.3882, allocations: 37.98 kB / 374.2 MB, free: 16.53 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.019e-05/0.3883, allocations: 39.17 kB / 374.2 MB, free: 16.52 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.847e-06/0.3883, allocations: 2.156 kB / 374.2 MB, free: 16.52 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.3883, allocations: 5.719 kB / 374.2 MB, free: 16.52 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.919e-06/0.3883, allocations: 5.484 kB / 374.2 MB, free: 16.52 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004928/0.3888, allocations: 371.7 kB / 374.6 MB, free: 16.33 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.797e-06/0.3888, allocations: 0 / 374.6 MB, free: 16.33 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001333/0.3889, allocations: 27.47 kB / 374.6 MB, free: 16.33 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003528/0.3893, allocations: 113.2 kB / 374.7 MB, free: 16.31 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.917e-05/0.3893, allocations: 5 kB / 374.8 MB, free: 16.31 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002908/0.3923, allocations: 4.475 MB / 379.2 MB, free: 12.31 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.884e-06/0.3923, allocations: 0 / 379.2 MB, free: 12.31 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006658/0.3929, allocations: 421.2 kB / 379.6 MB, free: 12.14 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000124/0.3931, allocations: 127.3 kB / 379.8 MB, free: 12.03 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.679e-05/0.3931, allocations: 2.016 kB / 379.8 MB, free: 12.03 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002412/0.3934, allocations: 28.84 kB / 379.8 MB, free: 12.03 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001063/0.3935, allocations: 27.91 kB / 379.8 MB, free: 12.02 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.238e-05/0.3935, allocations: 13.31 kB / 379.8 MB, free: 12.02 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000246/0.3938, allocations: 219.5 kB / 380 MB, free: 11.94 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.3938, allocations: 0.6562 kB / 380 MB, free: 11.94 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007569/0.3945, allocations: 109.4 kB / 380.2 MB, free: 11.93 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.0009912/0.3955, allocations: 0.9451 MB / 381.1 MB, free: 11.24 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009577/0.3965, allocations: 0.5883 MB / 381.7 MB, free: 10.84 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.387e-06/0.3965, allocations: 0 / 381.7 MB, free: 10.84 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004957/0.397, allocations: 487.1 kB / 382.2 MB, free: 10.45 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003557/0.3974, allocations: 51.12 kB / 382.2 MB, free: 10.44 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003394/0.4008, allocations: 2.509 MB / 384.7 MB, free: 8.762 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003546/0.4012, allocations: 0.8058 MB / 385.5 MB, free: 8.055 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001527/0.4013, allocations: 27.61 kB / 385.6 MB, free: 8.043 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001349/0.4015, allocations: 108.2 kB / 385.7 MB, free: 7.961 MB / 302.1 MB Notification: Performance of SimCode: time 7.22e-07/0.4015, allocations: 0 / 385.7 MB, free: 7.961 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02424/0.4257, allocations: 7.551 MB / 393.2 MB, free: 6.203 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001613/0.4259, allocations: 223.1 kB / 393.4 MB, free: 5.961 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.077/2.502, allocations: 0 / 393.4 MB, free: 5.961 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.mat does not exist to compare? outputFormat=mat