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.001627/0.001627, allocations: 185.4 kB / 16.41 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.982/1.982, allocations: 205.4 MB / 222.5 MB, free: 9.137 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.001158/0.001158, allocations: 80.5 kB / 270.9 MB, free: 8.395 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004075/0.000408, allocations: 15.98 kB / 327.1 MB, free: 128 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3351/0.3355, allocations: 47.57 MB / 374.6 MB, free: 45.29 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1259/0.4614, allocations: 77.4 MB / 452 MB, free: 3.254 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002839/0.4618, allocations: 71.97 kB / 452.1 MB, free: 3.184 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02831/0.4901, allocations: 6.321 MB / 458.4 MB, free: 12.81 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.585e-06/0.4902, allocations: 0 / 458.4 MB, free: 12.81 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.189e-05/0.4902, allocations: 8 kB / 458.4 MB, free: 12.8 MB / 346.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.001611/0.4918, allocations: 0.6587 MB / 459.1 MB, free: 12.1 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.27e-05/0.4919, allocations: 8.031 kB / 459.1 MB, free: 12.09 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001454/0.4921, allocations: 74.47 kB / 459.2 MB, free: 12.01 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001264/0.4922, allocations: 51.38 kB / 459.2 MB, free: 11.96 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005798/0.4928, allocations: 302.1 kB / 459.5 MB, free: 11.62 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.408e-05/0.4928, allocations: 28.66 kB / 459.5 MB, free: 11.6 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.03e-05/0.4929, allocations: 28 kB / 459.6 MB, free: 11.57 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001031/0.494, allocations: 358.8 kB / 459.9 MB, free: 11.2 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.884e-05/0.494, allocations: 0 / 459.9 MB, free: 11.2 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.828e-05/0.4941, allocations: 16 kB / 459.9 MB, free: 11.18 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.567e-05/0.4941, allocations: 12 kB / 459.9 MB, free: 11.17 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000978/0.4951, allocations: 278.4 kB / 460.2 MB, free: 10.9 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003349/0.4985, allocations: 1.435 MB / 461.7 MB, free: 9.367 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007418/0.4993, allocations: 232.9 kB / 461.9 MB, free: 9.133 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.244e-05/0.4993, allocations: 4 kB / 461.9 MB, free: 9.129 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.768e-05/0.4994, allocations: 34.56 kB / 461.9 MB, free: 9.086 MB / 346.7 MB Notification: Performance of pre-optimization done (n=24): time 2.675e-06/0.4994, allocations: 0 / 461.9 MB, free: 9.086 MB / 346.7 MB Notification: Performance of matching and sorting (n=24): time 0.002639/0.502, allocations: 0.7068 MB / 462.6 MB, free: 8.309 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.997e-05/0.5021, allocations: 59.34 kB / 462.7 MB, free: 8.238 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004734/0.5026, allocations: 275.7 kB / 463 MB, free: 7.969 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.196e-05/0.5027, allocations: 29.7 kB / 463 MB, free: 7.934 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001917/0.5029, allocations: 258.7 kB / 463.2 MB, free: 7.68 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001038/0.503, allocations: 78.84 kB / 463.3 MB, free: 7.602 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.587e-05/0.503, allocations: 7.938 kB / 463.3 MB, free: 7.594 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.00015/0.5032, allocations: 322.8 kB / 463.6 MB, free: 7.27 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003635/0.5036, allocations: 80.47 kB / 463.7 MB, free: 7.191 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003963/0.504, allocations: 132.2 kB / 463.8 MB, free: 7.047 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003733/0.5044, allocations: 87.92 kB / 463.9 MB, free: 6.961 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.488e-06/0.5044, allocations: 4 kB / 463.9 MB, free: 6.957 MB / 346.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001342/0.5057, allocations: 355.9 kB / 464.3 MB, free: 6.594 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.715e-05/0.5058, allocations: 8 kB / 464.3 MB, free: 6.586 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.969e-06/0.5058, allocations: 4.078 kB / 464.3 MB, free: 6.582 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006609/0.5065, allocations: 118.4 kB / 464.4 MB, free: 6.457 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003278/0.5068, allocations: 35.95 kB / 464.4 MB, free: 6.422 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005593/0.5124, allocations: 4.473 MB / 468.9 MB, free: 1.539 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004643/0.5129, allocations: 39.81 kB / 469 MB, free: 1.5 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.671e-05/0.513, allocations: 19.94 kB / 469 MB, free: 1.48 MB / 346.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.0002897/0.5133, allocations: 141.8 kB / 469.1 MB, free: 1.332 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.768e-05/0.5134, allocations: 31.62 kB / 469.1 MB, free: 1.301 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.805e-05/0.5135, allocations: 39.17 kB / 469.2 MB, free: 1.258 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.937e-06/0.5135, allocations: 0 / 469.2 MB, free: 1.258 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.847e-06/0.5135, allocations: 0 / 469.2 MB, free: 1.258 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.741e-06/0.5136, allocations: 4 kB / 469.2 MB, free: 1.254 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006487/0.5142, allocations: 373.3 kB / 469.6 MB, free: 0.8398 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.727e-06/0.5142, allocations: 0 / 469.6 MB, free: 0.8398 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002447/0.5145, allocations: 27.92 kB / 469.6 MB, free: 0.8125 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005775/0.5151, allocations: 110.9 kB / 469.7 MB, free: 0.6953 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.041e-05/0.5151, allocations: 7.984 kB / 469.7 MB, free: 0.6875 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005382/0.5205, allocations: 4.478 MB / 474.2 MB, free: 11.81 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.619e-06/0.5206, allocations: 4 kB / 474.2 MB, free: 11.81 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001124/0.5217, allocations: 425.6 kB / 474.6 MB, free: 11.37 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000207/0.522, allocations: 124.6 kB / 474.7 MB, free: 11.23 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.121e-05/0.5221, allocations: 4 kB / 474.7 MB, free: 11.22 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004045/0.5225, allocations: 27.98 kB / 474.7 MB, free: 11.2 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001275/0.5226, allocations: 27.95 kB / 474.8 MB, free: 11.17 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.886e-05/0.5227, allocations: 8 kB / 474.8 MB, free: 11.16 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.000355/0.523, allocations: 215.1 kB / 475 MB, free: 10.95 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.523, allocations: 0 / 475 MB, free: 10.95 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0009225/0.524, allocations: 111.8 kB / 475.1 MB, free: 10.84 MB / 362.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.001487/0.5255, allocations: 0.9564 MB / 476.1 MB, free: 9.848 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001441/0.5269, allocations: 0.5741 MB / 476.6 MB, free: 9.234 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.799e-06/0.527, allocations: 0 / 476.6 MB, free: 9.234 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000875/0.5279, allocations: 483.9 kB / 477.1 MB, free: 8.723 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005596/0.5284, allocations: 58.11 kB / 477.2 MB, free: 8.668 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005253/0.5337, allocations: 2.55 MB / 479.7 MB, free: 6.035 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004992/0.5343, allocations: 0.799 MB / 480.5 MB, free: 5.207 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002661/0.5345, allocations: 111.4 kB / 480.6 MB, free: 5.098 MB / 362.7 MB Notification: Performance of SimCode: time 1.332e-06/0.5346, allocations: 0 / 480.6 MB, free: 5.098 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.769/3.303, allocations: 9.534 MB / 490.2 MB, free: 11.57 MB / 378.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