Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001622/0.001622, allocations: 180.9 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.361/2.361, allocations: 205.2 MB / 219.4 MB, free: 14.2 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001117/0.001117, allocations: 82.7 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.896e-05/3.927e-05, allocations: 15.92 kB / 321.6 MB, free: 17.75 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1009/0.1009, allocations: 47.57 MB / 369.2 MB, free: 2.109 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4178/0.5188, allocations: 77.3 MB / 446.5 MB, free: 15.94 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002638/0.5191, allocations: 70.02 kB / 446.6 MB, free: 15.9 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02723/0.5464, allocations: 6.335 MB / 452.9 MB, free: 10.49 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.734e-06/0.5464, allocations: 0 / 452.9 MB, free: 10.49 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.991e-05/0.5464, allocations: 8 kB / 452.9 MB, free: 10.48 MB / 330.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.001391/0.5479, allocations: 0.6119 MB / 453.5 MB, free: 9.844 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.726e-05/0.5479, allocations: 12.03 kB / 453.5 MB, free: 9.832 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001078/0.548, allocations: 66.91 kB / 453.6 MB, free: 9.777 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001174/0.5482, allocations: 47.44 kB / 453.6 MB, free: 9.73 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005291/0.5487, allocations: 304.6 kB / 453.9 MB, free: 9.422 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.228e-05/0.5488, allocations: 24.16 kB / 454 MB, free: 9.41 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.171e-05/0.5488, allocations: 31.44 kB / 454 MB, free: 9.387 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008411/0.5497, allocations: 335.8 kB / 454.3 MB, free: 9.137 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.469e-05/0.5497, allocations: 0 / 454.3 MB, free: 9.137 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.002e-05/0.5498, allocations: 15.75 kB / 454.3 MB, free: 9.133 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.128e-05/0.5498, allocations: 8 kB / 454.3 MB, free: 9.125 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000682/0.5505, allocations: 234.6 kB / 454.6 MB, free: 8.977 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003073/0.5536, allocations: 1.439 MB / 456 MB, free: 7.66 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005916/0.5542, allocations: 195.2 kB / 456.2 MB, free: 7.535 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002516/0.5545, allocations: 95.16 kB / 456.3 MB, free: 7.473 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.331e-05/0.5546, allocations: 11.94 kB / 456.3 MB, free: 7.461 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.465e-05/0.5546, allocations: 34.44 kB / 456.3 MB, free: 7.422 MB / 330.7 MB Notification: Performance of pre-optimization done (n=24): time 3.095e-06/0.5546, allocations: 0 / 456.3 MB, free: 7.422 MB / 330.7 MB Notification: Performance of matching and sorting (n=24): time 0.0007968/0.5554, allocations: 269.2 kB / 456.6 MB, free: 7.207 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.242e-05/0.5555, allocations: 55.41 kB / 456.6 MB, free: 7.141 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004433/0.5559, allocations: 268.4 kB / 456.9 MB, free: 6.918 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.184e-05/0.556, allocations: 33.58 kB / 456.9 MB, free: 6.883 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001839/0.5562, allocations: 260.7 kB / 457.2 MB, free: 6.664 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.245e-05/0.5563, allocations: 78.53 kB / 457.3 MB, free: 6.598 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.158e-05/0.5563, allocations: 7.938 kB / 457.3 MB, free: 6.59 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001455/0.5565, allocations: 322.5 kB / 457.6 MB, free: 6.273 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002148/0.5567, allocations: 63 kB / 457.7 MB, free: 6.234 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000262/0.557, allocations: 110.7 kB / 457.8 MB, free: 6.141 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002178/0.5572, allocations: 70.86 kB / 457.8 MB, free: 6.098 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.516e-06/0.5572, allocations: 0 / 457.8 MB, free: 6.098 MB / 330.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001007/0.5583, allocations: 311.6 kB / 458.1 MB, free: 5.836 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.26e-05/0.5583, allocations: 8 kB / 458.1 MB, free: 5.828 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.837e-06/0.5583, allocations: 4.062 kB / 458.2 MB, free: 5.824 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006382/0.559, allocations: 118.5 kB / 458.3 MB, free: 5.699 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003339/0.5593, allocations: 35.97 kB / 458.3 MB, free: 5.664 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005323/0.5647, allocations: 4.441 MB / 462.7 MB, free: 0.8164 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004383/0.5651, allocations: 27.83 kB / 462.8 MB, free: 0.7891 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.313e-05/0.5652, allocations: 8 kB / 462.8 MB, free: 0.7812 MB / 330.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 () * 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.000161/0.5654, allocations: 124.9 kB / 462.9 MB, free: 0.6523 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.908e-05/0.5655, allocations: 35.62 kB / 462.9 MB, free: 0.6172 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001145/0.5656, allocations: 38.95 kB / 463 MB, free: 0.5742 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.547e-06/0.5656, allocations: 0 / 463 MB, free: 0.5742 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.386e-06/0.5656, allocations: 0 / 463 MB, free: 0.5742 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.102e-05/0.5656, allocations: 7.938 kB / 463 MB, free: 0.5664 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006836/0.5663, allocations: 369.3 kB / 463.3 MB, free: 160 kB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.611e-06/0.5664, allocations: 0 / 463.3 MB, free: 160 kB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002281/0.5666, allocations: 31.91 kB / 463.4 MB, free: 128 kB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005524/0.5672, allocations: 114.6 kB / 463.5 MB, free: 4 kB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.636e-05/0.5672, allocations: 4 kB / 463.5 MB, free: 0 / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005162/0.5724, allocations: 4.434 MB / 467.9 MB, free: 11.17 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.05e-06/0.5724, allocations: 3.984 kB / 467.9 MB, free: 11.16 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000831/0.5733, allocations: 373.6 kB / 468.3 MB, free: 10.77 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002043/0.5735, allocations: 120.7 kB / 468.4 MB, free: 10.64 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.938e-05/0.5736, allocations: 4 kB / 468.4 MB, free: 10.63 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004355/0.574, allocations: 32.03 kB / 468.4 MB, free: 10.6 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001338/0.5742, allocations: 23.97 kB / 468.5 MB, free: 10.58 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.678e-05/0.5742, allocations: 4 kB / 468.5 MB, free: 10.57 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003567/0.5746, allocations: 214.2 kB / 468.7 MB, free: 10.36 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.11e-07/0.5746, allocations: 0 / 468.7 MB, free: 10.36 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0009073/0.5755, allocations: 119.7 kB / 468.8 MB, free: 10.25 MB / 346.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 () * 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.001197/0.5767, allocations: 0.9135 MB / 469.7 MB, free: 9.297 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001163/0.5779, allocations: 0.5275 MB / 470.2 MB, free: 8.73 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.887e-05/0.5779, allocations: 4.375 kB / 470.2 MB, free: 8.727 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007235/0.5787, allocations: 459.6 kB / 470.7 MB, free: 8.238 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006019/0.5793, allocations: 53.28 kB / 470.7 MB, free: 8.188 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001705/0.581, allocations: 0.4998 MB / 471.2 MB, free: 7.645 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005405/0.5816, allocations: 0.8106 MB / 472.1 MB, free: 6.805 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002568/0.5819, allocations: 115.4 kB / 472.2 MB, free: 6.691 MB / 346.7 MB Notification: Performance of SimCode: time 1.734e-06/0.5819, allocations: 0 / 472.2 MB, free: 6.691 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.86/3.442, allocations: 9.54 MB / 481.7 MB, free: 13.15 MB / 362.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.mat does not exist to compare? outputFormat=mat