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.001079/0.001079, allocations: 97.3 kB / 17 MB, free: 6.844 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001321/0.001321, allocations: 195.4 kB / 17.9 MB, free: 6.062 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.543/1.543, allocations: 227.3 MB / 246 MB, free: 11.99 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000359/0.0003591, allocations: 4 kB / 306.8 MB, free: 1.48 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1352/0.1356, allocations: 51.51 MB / 358.3 MB, free: 13.97 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.004048/0.1397, allocations: 3.008 MB / 361.3 MB, free: 10.95 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001629/0.1414, allocations: 0.7679 MB / 362.1 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002162/0.1416, allocations: 8 kB / 362.1 MB, free: 10.17 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001664/0.1418, allocations: 47.55 kB / 362.1 MB, free: 10.12 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000226/0.142, allocations: 115 kB / 362.3 MB, free: 10.01 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003234/0.1423, allocations: 87.84 kB / 362.3 MB, free: 9.922 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004899/0.1428, allocations: 465.8 kB / 362.8 MB, free: 9.465 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000242/0.1431, allocations: 106.7 kB / 362.9 MB, free: 9.352 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003137/0.1434, allocations: 163.4 kB / 363.1 MB, free: 9.191 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002658/0.1437, allocations: 183.2 kB / 363.2 MB, free: 9.012 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.183e-05/0.1438, allocations: 20 kB / 363.3 MB, free: 8.992 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001036/0.1439, allocations: 24 kB / 363.3 MB, free: 8.969 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.883e-05/0.144, allocations: 63.69 kB / 363.3 MB, free: 8.906 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001301/0.1441, allocations: 101.5 kB / 363.4 MB, free: 8.801 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003848/0.1445, allocations: 355 kB / 363.8 MB, free: 8.453 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.502e-06/0.1445, allocations: 0 / 363.8 MB, free: 8.453 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.545e-06/0.1445, allocations: 0 / 363.8 MB, free: 8.453 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.35e-05/0.1445, allocations: 0 / 363.8 MB, free: 8.453 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.001081/0.1456, allocations: 0.6661 MB / 364.5 MB, free: 7.738 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.131e-05/0.1457, allocations: 12.03 kB / 364.5 MB, free: 7.727 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.03e-05/0.1458, allocations: 70.53 kB / 364.5 MB, free: 7.648 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003391/0.1461, allocations: 83.41 kB / 364.6 MB, free: 7.566 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003696/0.1465, allocations: 294.2 kB / 364.9 MB, free: 7.242 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.694e-05/0.1465, allocations: 24.66 kB / 364.9 MB, free: 7.219 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.863e-05/0.1466, allocations: 35.95 kB / 365 MB, free: 7.184 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006134/0.1472, allocations: 358.7 kB / 365.3 MB, free: 6.82 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.142e-05/0.1472, allocations: 0 / 365.3 MB, free: 6.82 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.33e-05/0.1473, allocations: 16 kB / 365.3 MB, free: 6.805 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.169e-05/0.1473, allocations: 11.98 kB / 365.3 MB, free: 6.793 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005325/0.1478, allocations: 278.4 kB / 365.6 MB, free: 6.52 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001969/0.1498, allocations: 1.434 MB / 367 MB, free: 4.984 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004135/0.1502, allocations: 226.3 kB / 367.3 MB, free: 4.754 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002085/0.1504, allocations: 112.8 kB / 367.4 MB, free: 4.641 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.768e-05/0.1505, allocations: 7.938 kB / 367.4 MB, free: 4.633 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.855e-05/0.1505, allocations: 34.56 kB / 367.4 MB, free: 4.59 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.783e-06/0.1505, allocations: 0 / 367.4 MB, free: 4.59 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.001533/0.1521, allocations: 0.7253 MB / 368.1 MB, free: 3.797 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.251e-05/0.1521, allocations: 59.36 kB / 368.2 MB, free: 3.727 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000325/0.1524, allocations: 296.6 kB / 368.5 MB, free: 3.43 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.868e-05/0.1525, allocations: 33.7 kB / 368.5 MB, free: 3.391 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001563/0.1526, allocations: 208.1 kB / 368.7 MB, free: 3.18 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.758e-05/0.1527, allocations: 86.83 kB / 368.8 MB, free: 3.094 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.287e-05/0.1527, allocations: 4 kB / 368.8 MB, free: 3.09 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000136/0.1529, allocations: 346.8 kB / 369.2 MB, free: 2.742 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001982/0.1531, allocations: 87.89 kB / 369.2 MB, free: 2.656 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002087/0.1533, allocations: 124.2 kB / 369.4 MB, free: 2.52 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002174/0.1535, allocations: 91.97 kB / 369.5 MB, free: 2.43 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.1535, allocations: 0 / 369.5 MB, free: 2.43 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.000759/0.1543, allocations: 371.5 kB / 369.8 MB, free: 2.051 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.532e-05/0.1543, allocations: 4.281 kB / 369.8 MB, free: 2.047 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.065e-06/0.1544, allocations: 8 kB / 369.8 MB, free: 2.039 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004482/0.1548, allocations: 122.4 kB / 369.9 MB, free: 1.91 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001866/0.155, allocations: 39.91 kB / 370 MB, free: 1.871 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2761/0.4311, allocations: 4.428 MB / 374.4 MB, free: 16.68 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004204/0.4316, allocations: 30.16 kB / 374.4 MB, free: 16.68 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.921e-05/0.4317, allocations: 12.19 kB / 374.5 MB, free: 16.68 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.0003215/0.432, allocations: 146.5 kB / 374.6 MB, free: 16.56 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001089/0.4321, allocations: 36.33 kB / 374.6 MB, free: 16.56 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.769e-05/0.4322, allocations: 42.62 kB / 374.7 MB, free: 16.55 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.544e-06/0.4322, allocations: 2.312 kB / 374.7 MB, free: 16.55 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.75e-06/0.4323, allocations: 0 / 374.7 MB, free: 16.55 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.017e-05/0.4323, allocations: 2.547 kB / 374.7 MB, free: 16.55 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007233/0.433, allocations: 373.3 kB / 375 MB, free: 16.37 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.44e-06/0.433, allocations: 0 / 375 MB, free: 16.37 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001482/0.4332, allocations: 27.03 kB / 375.1 MB, free: 16.37 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004018/0.4336, allocations: 119.6 kB / 375.2 MB, free: 16.34 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.952e-05/0.4336, allocations: 6.766 kB / 375.2 MB, free: 16.34 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003978/0.4376, allocations: 4.439 MB / 379.6 MB, free: 12.34 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.4377, allocations: 0.8125 kB / 379.6 MB, free: 12.34 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009085/0.4386, allocations: 411.5 kB / 380 MB, free: 12.17 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000158/0.4387, allocations: 125.8 kB / 380.2 MB, free: 12.06 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.971e-05/0.4388, allocations: 12.45 kB / 380.2 MB, free: 12.06 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002421/0.439, allocations: 30.98 kB / 380.2 MB, free: 12.05 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001434/0.4392, allocations: 26.52 kB / 380.2 MB, free: 12.05 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.099e-05/0.4392, allocations: 4.75 kB / 380.2 MB, free: 12.05 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003559/0.4396, allocations: 216.2 kB / 380.4 MB, free: 11.97 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.31e-07/0.4396, allocations: 0.5 kB / 380.4 MB, free: 11.97 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001004/0.4406, allocations: 113.6 kB / 380.6 MB, free: 11.96 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.00118/0.4418, allocations: 0.9503 MB / 381.5 MB, free: 11.27 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001239/0.4431, allocations: 0.5818 MB / 382.1 MB, free: 10.91 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.22e-06/0.4431, allocations: 5.5 kB / 382.1 MB, free: 10.9 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006162/0.4437, allocations: 483.2 kB / 382.6 MB, free: 10.52 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006568/0.4444, allocations: 67.92 kB / 382.6 MB, free: 10.49 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003278/0.4477, allocations: 1.922 MB / 384.6 MB, free: 9.406 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002657/0.4479, allocations: 0.7935 MB / 385.3 MB, free: 8.703 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001716/0.4481, allocations: 29.64 kB / 385.4 MB, free: 8.691 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001264/0.4483, allocations: 105.6 kB / 385.5 MB, free: 8.605 MB / 302.1 MB Notification: Performance of SimCode: time 1.122e-06/0.4483, allocations: 0 / 385.5 MB, free: 8.605 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02412/0.4724, allocations: 7.573 MB / 393.1 MB, free: 6.781 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000256/0.4727, allocations: 230.9 kB / 393.3 MB, free: 6.543 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.086/2.559, allocations: 1 kB / 393.3 MB, free: 6.543 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