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.001424/0.001424, allocations: 178.3 kB / 8.359 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.041/2.041, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001513/0.001513, allocations: 85.3 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.41e-05/2.424e-05, allocations: 4 kB / 314.9 MB, free: 9.066 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3421/0.3422, allocations: 47.56 MB / 362.4 MB, free: 45.71 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.156/0.4983, allocations: 76.65 MB / 439.1 MB, free: 9.574 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003535/0.4987, allocations: 71.95 kB / 439.1 MB, free: 9.504 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.03895/0.5377, allocations: 6.258 MB / 445.4 MB, free: 3.254 MB / 331.1 MB Notification: Performance of FrontEnd: time 2.745e-06/0.5377, allocations: 2.859 kB / 445.4 MB, free: 3.254 MB / 331.1 MB Notification: Performance of Transformations before backend: time 4.161e-05/0.5378, allocations: 8 kB / 445.4 MB, free: 3.246 MB / 331.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.002203/0.54, allocations: 0.6176 MB / 446 MB, free: 2.586 MB / 331.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.037e-05/0.5401, allocations: 8.031 kB / 446 MB, free: 2.578 MB / 331.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002495/0.5404, allocations: 47.44 kB / 446.1 MB, free: 2.531 MB / 331.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008406/0.5412, allocations: 298.5 kB / 446.4 MB, free: 2.199 MB / 331.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.739e-05/0.5413, allocations: 11.98 kB / 446.4 MB, free: 2.188 MB / 331.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.555e-05/0.5414, allocations: 24 kB / 446.4 MB, free: 2.164 MB / 331.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001003/0.5424, allocations: 209.5 kB / 446.6 MB, free: 1.957 MB / 331.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001066/0.5435, allocations: 287.1 kB / 446.9 MB, free: 1.66 MB / 331.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.119e-05/0.5436, allocations: 4 kB / 446.9 MB, free: 1.656 MB / 331.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.705e-05/0.5437, allocations: 3.984 kB / 446.9 MB, free: 1.652 MB / 331.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.485e-05/0.5437, allocations: 8 kB / 446.9 MB, free: 1.645 MB / 331.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004631/0.5484, allocations: 1.372 MB / 448.3 MB, free: 188 kB / 331.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007813/0.5492, allocations: 194 kB / 448.5 MB, free: 15.98 MB / 347.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003287/0.5496, allocations: 88.8 kB / 448.6 MB, free: 15.9 MB / 347.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.837e-05/0.5496, allocations: 4 kB / 448.6 MB, free: 15.89 MB / 347.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.635e-05/0.5497, allocations: 42.5 kB / 448.6 MB, free: 15.84 MB / 347.1 MB Notification: Performance of pre-optimization done (n=24): time 4.589e-06/0.5497, allocations: 0 / 448.6 MB, free: 15.84 MB / 347.1 MB Notification: Performance of matching and sorting (n=24): time 0.001128/0.5509, allocations: 244.5 kB / 448.8 MB, free: 15.59 MB / 347.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.769e-05/0.551, allocations: 59.39 kB / 448.9 MB, free: 15.52 MB / 347.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005826/0.5516, allocations: 233.2 kB / 449.1 MB, free: 15.29 MB / 347.1 MB Notification: Performance of collectPreVariables (initialization): time 7.091e-05/0.5517, allocations: 25.7 kB / 449.2 MB, free: 15.26 MB / 347.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002678/0.5519, allocations: 270.8 kB / 449.4 MB, free: 14.99 MB / 347.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001288/0.5521, allocations: 74.84 kB / 449.5 MB, free: 14.92 MB / 347.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.578e-05/0.5521, allocations: 0 / 449.5 MB, free: 14.92 MB / 347.1 MB Notification: Performance of setup shared object (initialization): time 0.0001742/0.5523, allocations: 318.8 kB / 449.8 MB, free: 14.6 MB / 347.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002701/0.5526, allocations: 59.98 kB / 449.9 MB, free: 14.54 MB / 347.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003201/0.5529, allocations: 96.8 kB / 450 MB, free: 14.43 MB / 347.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003042/0.5533, allocations: 72.94 kB / 450 MB, free: 14.36 MB / 347.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.44e-06/0.5533, allocations: 0 / 450 MB, free: 14.36 MB / 347.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001403/0.5547, allocations: 287.3 kB / 450.3 MB, free: 14.07 MB / 347.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.914e-05/0.5548, allocations: 4 kB / 450.3 MB, free: 14.06 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.059e-05/0.5548, allocations: 4 kB / 450.3 MB, free: 14.06 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008545/0.5557, allocations: 110.6 kB / 450.4 MB, free: 13.94 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004591/0.5562, allocations: 35.92 kB / 450.5 MB, free: 13.91 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007623/0.5638, allocations: 4.263 MB / 454.7 MB, free: 9.293 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005896/0.5645, allocations: 31.7 kB / 454.8 MB, free: 9.262 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.609e-05/0.5645, allocations: 11.94 kB / 454.8 MB, free: 9.25 MB / 347.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 () * 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.0001978/0.5647, allocations: 108.9 kB / 454.9 MB, free: 9.137 MB / 347.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0009585/0.5657, allocations: 245.8 kB / 455.1 MB, free: 8.883 MB / 347.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000136/0.5659, allocations: 35.56 kB / 455.1 MB, free: 8.848 MB / 347.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001395/0.5661, allocations: 34.09 kB / 455.2 MB, free: 8.812 MB / 347.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.889e-06/0.5661, allocations: 4 kB / 455.2 MB, free: 8.809 MB / 347.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.5661, allocations: 96 / 455.2 MB, free: 8.809 MB / 347.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.096e-05/0.5661, allocations: 3.984 kB / 455.2 MB, free: 8.805 MB / 347.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008823/0.567, allocations: 325.8 kB / 455.5 MB, free: 8.449 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.08e-06/0.5671, allocations: 3.938 kB / 455.5 MB, free: 8.445 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003261/0.5674, allocations: 27.98 kB / 455.5 MB, free: 8.418 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006992/0.5681, allocations: 102.5 kB / 455.6 MB, free: 8.309 MB / 347.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.251e-05/0.5682, allocations: 4 kB / 455.6 MB, free: 8.305 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006611/0.5748, allocations: 4.259 MB / 459.9 MB, free: 3.699 MB / 347.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.004e-05/0.5749, allocations: 4.281 kB / 459.9 MB, free: 3.695 MB / 347.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009892/0.5759, allocations: 346.5 kB / 460.2 MB, free: 3.332 MB / 347.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000271/0.5762, allocations: 124.6 kB / 460.4 MB, free: 3.191 MB / 347.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.137e-05/0.5763, allocations: 16 kB / 460.4 MB, free: 3.176 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000547/0.5768, allocations: 22.98 kB / 460.4 MB, free: 3.156 MB / 347.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001605/0.577, allocations: 19.97 kB / 460.4 MB, free: 3.137 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.754e-05/0.5771, allocations: 8 kB / 460.4 MB, free: 3.129 MB / 347.1 MB Notification: Performance of sorting global known variables: time 0.0003753/0.5774, allocations: 192.6 kB / 460.6 MB, free: 2.941 MB / 347.1 MB Notification: Performance of sort global known variables: time 5.81e-07/0.5775, allocations: 4 kB / 460.6 MB, free: 2.938 MB / 347.1 MB Notification: Performance of remove unused functions: time 0.001568/0.579, allocations: 103.7 kB / 460.7 MB, free: 2.836 MB / 347.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 () * 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.001571/0.5807, allocations: 0.8798 MB / 461.6 MB, free: 1.922 MB / 347.1 MB Notification: Performance of simCode: created initialization part: time 0.001481/0.5822, allocations: 0.5093 MB / 462.1 MB, free: 1.383 MB / 347.1 MB Notification: Performance of simCode: created event and clocks part: time 1.08e-05/0.5822, allocations: 0 / 462.1 MB, free: 1.383 MB / 347.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009314/0.5832, allocations: 433.2 kB / 462.5 MB, free: 0.9297 MB / 347.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000762/0.584, allocations: 44.7 kB / 462.6 MB, free: 0.8867 MB / 347.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002376/0.5864, allocations: 469.1 kB / 463 MB, free: 396 kB / 347.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007008/0.5872, allocations: 0.8109 MB / 463.8 MB, free: 15.54 MB / 363.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003478/0.5875, allocations: 103.9 kB / 464 MB, free: 15.44 MB / 363.1 MB Notification: Performance of SimCode: time 1.523e-06/0.5875, allocations: 1.125 kB / 464 MB, free: 15.44 MB / 363.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.783/3.37, allocations: 9.339 MB / 473.3 MB, free: 6.133 MB / 363.1 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