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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001135/0.001135, allocations: 179.6 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.414/1.414, allocations: 223.2 MB / 240.3 MB, free: 10.15 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001033/0.001033, allocations: 101.9 kB / 291.5 MB, free: 10.69 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003154/0.0003156, allocations: 8 kB / 351.2 MB, free: 15 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3008/0.3011, allocations: 50.41 MB / 401.6 MB, free: 32.53 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.101/0.4022, allocations: 78.74 MB / 480.3 MB, free: 1.68 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002914/0.4025, allocations: 68.5 kB / 480.4 MB, free: 1.613 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02104/0.4236, allocations: 6.554 MB / 486.9 MB, free: 11.01 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.545e-06/0.4236, allocations: 0 / 486.9 MB, free: 11.01 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.715e-05/0.4237, allocations: 15.98 kB / 487 MB, free: 11 MB / 362.7 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.001233/0.4249, allocations: 0.6583 MB / 487.6 MB, free: 10.29 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.018e-05/0.425, allocations: 8.031 kB / 487.6 MB, free: 10.28 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00011/0.4251, allocations: 70.53 kB / 487.7 MB, free: 10.2 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.837e-05/0.4252, allocations: 47.44 kB / 487.7 MB, free: 10.16 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004894/0.4257, allocations: 306.5 kB / 488 MB, free: 9.82 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.841e-05/0.4258, allocations: 24.66 kB / 488.1 MB, free: 9.797 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.384e-05/0.4258, allocations: 32 kB / 488.1 MB, free: 9.766 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000761/0.4266, allocations: 358.7 kB / 488.4 MB, free: 9.398 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.426e-05/0.4266, allocations: 0 / 488.4 MB, free: 9.398 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.085e-05/0.4267, allocations: 20 kB / 488.5 MB, free: 9.379 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.25e-05/0.4267, allocations: 8 kB / 488.5 MB, free: 9.371 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007307/0.4274, allocations: 278.4 kB / 488.7 MB, free: 9.098 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002073/0.4295, allocations: 1.434 MB / 490.2 MB, free: 7.562 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004273/0.43, allocations: 234.4 kB / 490.4 MB, free: 7.324 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.358e-05/0.43, allocations: 0 / 490.4 MB, free: 7.324 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.946e-05/0.43, allocations: 34.56 kB / 490.4 MB, free: 7.281 MB / 362.7 MB Notification: Performance of pre-optimization done (n=24): time 1.172e-06/0.43, allocations: 0 / 490.4 MB, free: 7.281 MB / 362.7 MB Notification: Performance of matching and sorting (n=24): time 0.00148/0.4315, allocations: 0.7125 MB / 491.2 MB, free: 6.5 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.805e-05/0.4316, allocations: 55.39 kB / 491.2 MB, free: 6.434 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002737/0.4319, allocations: 267.7 kB / 491.5 MB, free: 6.172 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.74e-05/0.4319, allocations: 33.7 kB / 491.5 MB, free: 6.133 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001303/0.432, allocations: 212.1 kB / 491.7 MB, free: 5.922 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.735e-05/0.4321, allocations: 66.92 kB / 491.8 MB, free: 5.855 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.455e-05/0.4321, allocations: 8 kB / 491.8 MB, free: 5.848 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001569/0.4323, allocations: 342.8 kB / 492.1 MB, free: 5.504 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001802/0.4325, allocations: 87.91 kB / 492.2 MB, free: 5.418 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002029/0.4327, allocations: 128.2 kB / 492.3 MB, free: 5.277 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001931/0.4329, allocations: 91.92 kB / 492.4 MB, free: 5.188 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.4329, allocations: 3.938 kB / 492.4 MB, free: 5.184 MB / 362.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007216/0.4336, allocations: 371.6 kB / 492.8 MB, free: 4.805 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.571e-05/0.4336, allocations: 4 kB / 492.8 MB, free: 4.801 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.205e-06/0.4337, allocations: 4 kB / 492.8 MB, free: 4.797 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003905/0.434, allocations: 114.4 kB / 492.9 MB, free: 4.676 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001735/0.4342, allocations: 40 kB / 492.9 MB, free: 4.637 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003636/0.4379, allocations: 4.473 MB / 497.4 MB, free: 15.75 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002325/0.4381, allocations: 35.86 kB / 497.5 MB, free: 15.71 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.069e-05/0.4382, allocations: 8 kB / 497.5 MB, free: 15.71 MB / 378.7 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.0001738/0.4383, allocations: 149.7 kB / 497.6 MB, free: 15.55 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.193e-05/0.4384, allocations: 35.62 kB / 497.6 MB, free: 15.52 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.31e-05/0.4385, allocations: 35.17 kB / 497.7 MB, free: 15.48 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.784e-06/0.4385, allocations: 0 / 497.7 MB, free: 15.48 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.196e-06/0.4385, allocations: 0 / 497.7 MB, free: 15.48 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.702e-06/0.4385, allocations: 3.984 kB / 497.7 MB, free: 15.48 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004305/0.4389, allocations: 381.1 kB / 498.1 MB, free: 15.06 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.439, allocations: 0 / 498.1 MB, free: 15.06 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001266/0.4391, allocations: 31.97 kB / 498.1 MB, free: 15.03 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003005/0.4394, allocations: 106.5 kB / 498.2 MB, free: 14.91 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.7e-05/0.4394, allocations: 4 kB / 498.2 MB, free: 14.91 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003494/0.4429, allocations: 4.477 MB / 0.4909 GB, free: 10.04 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.443, allocations: 0 / 0.4909 GB, free: 10.04 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006171/0.4436, allocations: 416.4 kB / 0.4913 GB, free: 9.605 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001508/0.4437, allocations: 132.6 kB / 0.4914 GB, free: 9.457 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.498e-05/0.4438, allocations: 4.281 kB / 0.4914 GB, free: 9.453 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002242/0.444, allocations: 27.98 kB / 0.4914 GB, free: 9.426 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.65e-05/0.4441, allocations: 32.19 kB / 0.4915 GB, free: 9.395 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.557e-05/0.4441, allocations: 7.938 kB / 0.4915 GB, free: 9.387 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002475/0.4444, allocations: 215.1 kB / 0.4917 GB, free: 9.176 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.61e-07/0.4444, allocations: 0 / 0.4917 GB, free: 9.176 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006652/0.4451, allocations: 119.8 kB / 0.4918 GB, free: 9.059 MB / 378.7 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.001019/0.4461, allocations: 0.9523 MB / 0.4927 GB, free: 8.07 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.000977/0.4471, allocations: 0.5818 MB / 0.4933 GB, free: 7.449 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.4471, allocations: 0 / 0.4933 GB, free: 7.449 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000544/0.4477, allocations: 484 kB / 0.4938 GB, free: 6.938 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000341/0.448, allocations: 63.56 kB / 0.4938 GB, free: 6.879 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003563/0.4516, allocations: 2.518 MB / 0.4963 GB, free: 4.289 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004292/0.452, allocations: 0.8028 MB / 0.4971 GB, free: 3.457 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001288/0.4522, allocations: 22.98 kB / 0.4971 GB, free: 3.434 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001474/0.4523, allocations: 107.4 kB / 0.4972 GB, free: 3.328 MB / 378.7 MB Notification: Performance of SimCode: time 5.11e-07/0.4523, allocations: 0 / 0.4972 GB, free: 3.328 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2255/0.6778, allocations: 7.57 MB / 0.5046 GB, free: 99.52 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001595/0.678, allocations: 221.4 kB / 0.5048 GB, free: 99.29 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.115/2.793, allocations: 0 / 0.5048 GB, free: 99.29 MB / 378.7 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