Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes,fileNamePrefix="Modelica_3_2_3_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.001473/0.001473, allocations: 178.4 kB / 8.697 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.645/1.645, allocations: 205.3 MB / 214.4 MB, free: 1.742 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008407/0.0008408, allocations: 86.7 kB / 262.5 MB, free: 1.684 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.197e-05/2.207e-05, allocations: 4 kB / 315.6 MB, free: 22.62 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08397/0.08401, allocations: 47.58 MB / 363.2 MB, free: 6.988 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3218/0.4058, allocations: 76.88 MB / 440 MB, free: 2.723 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000205/0.4061, allocations: 72.08 kB / 440.1 MB, free: 2.684 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01632/0.4224, allocations: 6.25 MB / 446.4 MB, free: 13.43 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.914e-06/0.4224, allocations: 4 kB / 446.4 MB, free: 13.42 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.956e-05/0.4224, allocations: 8 kB / 446.4 MB, free: 13.41 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.0008541/0.4233, allocations: 0.6155 MB / 447 MB, free: 12.78 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.944e-05/0.4234, allocations: 12.03 kB / 447 MB, free: 12.77 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.225e-05/0.4235, allocations: 47.44 kB / 447 MB, free: 12.72 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003635/0.4238, allocations: 299.5 kB / 447.3 MB, free: 12.41 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.879e-05/0.4239, allocations: 12 kB / 447.4 MB, free: 12.4 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.931e-05/0.4239, allocations: 16 kB / 447.4 MB, free: 12.39 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000363/0.4243, allocations: 221.2 kB / 447.6 MB, free: 12.25 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004431/0.4247, allocations: 287.2 kB / 447.9 MB, free: 12.02 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.074e-05/0.4247, allocations: 0 / 447.9 MB, free: 12.02 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.885e-05/0.4248, allocations: 0 / 447.9 MB, free: 12.02 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.019e-05/0.4248, allocations: 8 kB / 447.9 MB, free: 12.02 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001832/0.4266, allocations: 1.368 MB / 449.2 MB, free: 10.76 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002991/0.427, allocations: 195.9 kB / 449.4 MB, free: 10.64 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001198/0.4271, allocations: 84.28 kB / 449.5 MB, free: 10.58 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.332e-05/0.4271, allocations: 4 kB / 449.5 MB, free: 10.58 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.345e-05/0.4272, allocations: 38.19 kB / 449.6 MB, free: 10.54 MB / 330.7 MB Notification: Performance of pre-optimization done (n=24): time 1.492e-06/0.4272, allocations: 7.875 kB / 449.6 MB, free: 10.53 MB / 330.7 MB Notification: Performance of matching and sorting (n=24): time 0.0004362/0.4276, allocations: 247.8 kB / 449.8 MB, free: 10.32 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.955e-05/0.4277, allocations: 55.41 kB / 449.9 MB, free: 10.26 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002346/0.4279, allocations: 233.9 kB / 450.1 MB, free: 10.07 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.453e-05/0.4279, allocations: 29.7 kB / 450.1 MB, free: 10.03 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001162/0.4281, allocations: 215.8 kB / 450.3 MB, free: 9.863 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.814e-05/0.4281, allocations: 74.23 kB / 450.4 MB, free: 9.797 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.138e-05/0.4281, allocations: 0 / 450.4 MB, free: 9.797 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001342/0.4283, allocations: 338.3 kB / 450.7 MB, free: 9.469 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001024/0.4284, allocations: 64.3 kB / 450.8 MB, free: 9.434 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001317/0.4285, allocations: 101.2 kB / 450.9 MB, free: 9.348 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001108/0.4286, allocations: 64.23 kB / 451 MB, free: 9.309 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/0.4287, allocations: 4 kB / 451 MB, free: 9.305 MB / 330.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005523/0.4292, allocations: 312 kB / 451.3 MB, free: 9.051 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.767e-05/0.4292, allocations: 4 kB / 451.3 MB, free: 9.047 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.07e-05/0.4293, allocations: 7.984 kB / 451.3 MB, free: 9.039 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004292/0.4297, allocations: 106.9 kB / 451.4 MB, free: 8.949 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001845/0.4299, allocations: 39.92 kB / 451.4 MB, free: 8.91 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003282/0.4332, allocations: 4.265 MB / 455.7 MB, free: 4.559 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001941/0.4334, allocations: 27.8 kB / 455.7 MB, free: 4.531 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.869e-05/0.4334, allocations: 4.141 kB / 455.7 MB, free: 4.527 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.0001088/0.4335, allocations: 116.8 kB / 455.8 MB, free: 4.41 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003857/0.4339, allocations: 247.6 kB / 456.1 MB, free: 4.207 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.355e-05/0.434, allocations: 31.61 kB / 456.1 MB, free: 4.176 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.861e-05/0.4341, allocations: 38.66 kB / 456.1 MB, free: 4.152 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.807e-06/0.4341, allocations: 4 kB / 456.1 MB, free: 4.148 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.302e-06/0.4341, allocations: 0 / 456.1 MB, free: 4.148 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.067e-06/0.4341, allocations: 0 / 456.1 MB, free: 4.148 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003472/0.4344, allocations: 321 kB / 456.5 MB, free: 3.855 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.4344, allocations: 3.938 kB / 456.5 MB, free: 3.852 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001182/0.4346, allocations: 23.98 kB / 456.5 MB, free: 3.828 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002888/0.4349, allocations: 112 kB / 456.6 MB, free: 3.734 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.455e-05/0.4349, allocations: 0 / 456.6 MB, free: 3.734 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003088/0.438, allocations: 4.262 MB / 460.9 MB, free: 15.39 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.438, allocations: 0 / 460.9 MB, free: 15.39 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000381/0.4384, allocations: 343.3 kB / 461.2 MB, free: 15.09 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001219/0.4385, allocations: 135.8 kB / 461.3 MB, free: 14.95 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.414e-05/0.4386, allocations: 3.953 kB / 461.3 MB, free: 14.94 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002161/0.4388, allocations: 24.05 kB / 461.4 MB, free: 14.92 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.892e-05/0.4389, allocations: 18.91 kB / 461.4 MB, free: 14.9 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.635e-05/0.4389, allocations: 7.125 kB / 461.4 MB, free: 14.9 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001673/0.4391, allocations: 192 kB / 461.6 MB, free: 14.75 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.41e-07/0.4391, allocations: 0 / 461.6 MB, free: 14.75 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0005893/0.4397, allocations: 103.7 kB / 461.7 MB, free: 14.64 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.0006876/0.4404, allocations: 0.8859 MB / 462.6 MB, free: 13.79 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0006131/0.441, allocations: 0.5044 MB / 463.1 MB, free: 13.32 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.678e-06/0.441, allocations: 3.938 kB / 463.1 MB, free: 13.32 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003871/0.4414, allocations: 427.1 kB / 463.5 MB, free: 12.91 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003389/0.4417, allocations: 53.83 kB / 463.5 MB, free: 12.88 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009494/0.4427, allocations: 438.9 kB / 464 MB, free: 12.45 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003716/0.4431, allocations: 0.8031 MB / 464.8 MB, free: 11.61 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001044/0.4432, allocations: 26.11 kB / 464.8 MB, free: 11.59 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001284/0.4433, allocations: 106 kB / 464.9 MB, free: 11.56 MB / 346.7 MB Notification: Performance of SimCode: time 2.91e-07/0.4433, allocations: 0 / 464.9 MB, free: 11.56 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03121/0.4746, allocations: 6.513 MB / 471.4 MB, free: 5.043 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003072/0.4749, allocations: 155.6 kB / 471.6 MB, free: 4.848 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.946/2.421, allocations: 0 / 471.6 MB, free: 4.848 MB / 346.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.mat does not exist to compare? outputFormat=mat