Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001312/0.001312, allocations: 194 kB / 17.38 MB, free: 4.41 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.301/1.301, allocations: 226.5 MB / 244.7 MB, free: 8.195 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007305/0.0007305, allocations: 87.81 kB / 296.7 MB, free: 6.891 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002094/0.0002095, allocations: 8 kB / 356.8 MB, free: 10.8 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2032/0.2034, allocations: 51.29 MB / 408.1 MB, free: 27.57 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.002381/0.2058, allocations: 3 MB / 411.1 MB, free: 24.56 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009979/0.2068, allocations: 0.7643 MB / 411.9 MB, free: 23.8 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001434/0.207, allocations: 7.938 kB / 411.9 MB, free: 23.79 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001341/0.2071, allocations: 55.55 kB / 412 MB, free: 23.74 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001777/0.2073, allocations: 111.7 kB / 412.1 MB, free: 23.63 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002667/0.2076, allocations: 83.84 kB / 412.1 MB, free: 23.55 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003167/0.2079, allocations: 465.8 kB / 412.6 MB, free: 23.09 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001931/0.2081, allocations: 130.3 kB / 412.7 MB, free: 22.96 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001968/0.2083, allocations: 167.3 kB / 412.9 MB, free: 22.8 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000156/0.2085, allocations: 179.2 kB / 413.1 MB, free: 22.62 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.89e-05/0.2085, allocations: 20 kB / 413.1 MB, free: 22.61 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.758e-05/0.2086, allocations: 28 kB / 413.1 MB, free: 22.58 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.442e-05/0.2087, allocations: 63.69 kB / 413.2 MB, free: 22.52 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001284/0.2088, allocations: 216.8 kB / 413.4 MB, free: 22.3 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002311/0.209, allocations: 358.9 kB / 413.7 MB, free: 21.95 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.2091, allocations: 0 / 413.7 MB, free: 21.95 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.403e-06/0.2091, allocations: 0 / 413.7 MB, free: 21.95 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.043e-06/0.2091, allocations: 0 / 413.7 MB, free: 21.95 MB / 298.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.0007762/0.2099, allocations: 0.6585 MB / 414.4 MB, free: 21.24 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.604e-05/0.2099, allocations: 8.031 kB / 414.4 MB, free: 21.23 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.762e-05/0.21, allocations: 70.72 kB / 414.5 MB, free: 21.15 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002893/0.2103, allocations: 88.28 kB / 414.6 MB, free: 21.07 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002508/0.2105, allocations: 307.2 kB / 414.9 MB, free: 20.73 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.921e-05/0.2106, allocations: 21.03 kB / 414.9 MB, free: 20.71 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.299e-05/0.2106, allocations: 32.38 kB / 414.9 MB, free: 20.68 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000533/0.2111, allocations: 358.9 kB / 415.3 MB, free: 20.31 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.376e-05/0.2112, allocations: 4 kB / 415.3 MB, free: 20.31 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.725e-05/0.2112, allocations: 15.94 kB / 415.3 MB, free: 20.29 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.133e-06/0.2112, allocations: 11.98 kB / 415.3 MB, free: 20.28 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004543/0.2117, allocations: 278.4 kB / 415.6 MB, free: 20.01 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001475/0.2131, allocations: 1.43 MB / 417 MB, free: 18.48 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003495/0.2135, allocations: 239.3 kB / 417.2 MB, free: 18.23 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001828/0.2137, allocations: 112.8 kB / 417.3 MB, free: 18.12 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.187e-05/0.2137, allocations: 4 kB / 417.3 MB, free: 18.12 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.981e-05/0.2138, allocations: 38.56 kB / 417.4 MB, free: 18.07 MB / 298.7 MB Notification: Performance of pre-optimization done (n=24): time 1.533e-06/0.2138, allocations: 0 / 417.4 MB, free: 18.07 MB / 298.7 MB Notification: Performance of matching and sorting (n=24): time 0.001287/0.2151, allocations: 0.7193 MB / 418.1 MB, free: 17.28 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.06e-05/0.2151, allocations: 51.41 kB / 418.1 MB, free: 17.22 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000218/0.2153, allocations: 312.5 kB / 418.5 MB, free: 16.9 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.558e-05/0.2153, allocations: 29.64 kB / 418.5 MB, free: 16.87 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.23e-05/0.2154, allocations: 212.1 kB / 418.7 MB, free: 16.65 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.607e-05/0.2155, allocations: 74.91 kB / 418.8 MB, free: 16.58 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.273e-05/0.2155, allocations: 8 kB / 418.8 MB, free: 16.57 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.567e-05/0.2155, allocations: 334.8 kB / 419.1 MB, free: 16.23 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001656/0.2157, allocations: 87.95 kB / 419.2 MB, free: 16.15 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001734/0.2159, allocations: 124.2 kB / 419.3 MB, free: 16.01 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003339/0.2162, allocations: 212.2 kB / 419.5 MB, free: 15.79 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.185e-06/0.2162, allocations: 3.938 kB / 419.5 MB, free: 15.79 MB / 298.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.000626/0.2169, allocations: 375.4 kB / 419.9 MB, free: 15.4 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.631e-05/0.2169, allocations: 4 kB / 419.9 MB, free: 15.4 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.294e-06/0.2169, allocations: 12 kB / 419.9 MB, free: 15.39 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003586/0.2173, allocations: 114.4 kB / 420 MB, free: 15.27 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001605/0.2175, allocations: 35.97 kB / 420 MB, free: 15.23 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002407/0.2199, allocations: 4.445 MB / 424.5 MB, free: 10.38 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000201/0.2201, allocations: 35.7 kB / 424.5 MB, free: 10.35 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.824e-05/0.2201, allocations: 8 kB / 424.5 MB, free: 10.34 MB / 298.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.0001519/0.2203, allocations: 149.8 kB / 424.7 MB, free: 10.18 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.2e-05/0.2203, allocations: 39.61 kB / 424.7 MB, free: 10.14 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.577e-05/0.2204, allocations: 35.17 kB / 424.8 MB, free: 10.11 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.385e-06/0.2204, allocations: 0 / 424.8 MB, free: 10.11 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.166e-06/0.2204, allocations: 3.938 kB / 424.8 MB, free: 10.11 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.988e-06/0.2204, allocations: 3.938 kB / 424.8 MB, free: 10.1 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003123/0.2207, allocations: 381.2 kB / 425.1 MB, free: 9.68 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.2207, allocations: 0 / 425.1 MB, free: 9.68 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000106/0.2209, allocations: 23.98 kB / 425.2 MB, free: 9.656 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002783/0.2211, allocations: 114.4 kB / 425.3 MB, free: 9.535 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.544e-05/0.2212, allocations: 4 kB / 425.3 MB, free: 9.531 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002245/0.2234, allocations: 4.446 MB / 429.7 MB, free: 4.688 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.2234, allocations: 0 / 429.7 MB, free: 4.688 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004946/0.2239, allocations: 421.6 kB / 430.1 MB, free: 4.25 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.337e-05/0.224, allocations: 128.6 kB / 430.3 MB, free: 4.105 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.965e-05/0.2241, allocations: 4 kB / 430.3 MB, free: 4.102 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00021/0.2243, allocations: 23.98 kB / 430.3 MB, free: 4.078 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.417e-05/0.2244, allocations: 28.06 kB / 430.3 MB, free: 4.051 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.557e-05/0.2244, allocations: 11.98 kB / 430.3 MB, free: 4.039 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001527/0.2245, allocations: 215.1 kB / 430.5 MB, free: 3.828 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.2246, allocations: 288 / 430.5 MB, free: 3.828 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000592/0.2252, allocations: 115.7 kB / 430.6 MB, free: 3.715 MB / 298.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.0006507/0.2258, allocations: 0.9562 MB / 431.6 MB, free: 2.727 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0006987/0.2265, allocations: 0.5856 MB / 432.2 MB, free: 2.102 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.2265, allocations: 0 / 432.2 MB, free: 2.102 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003892/0.2269, allocations: 480.4 kB / 432.7 MB, free: 1.594 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004129/0.2274, allocations: 59.47 kB / 432.7 MB, free: 1.539 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002546/0.2299, allocations: 1.956 MB / 434.7 MB, free: 15.51 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003184/0.2302, allocations: 0.8027 MB / 435.5 MB, free: 14.68 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001469/0.2304, allocations: 111.4 kB / 435.6 MB, free: 14.57 MB / 314.7 MB Notification: Performance of SimCode: time 3.91e-07/0.2304, allocations: 0 / 435.6 MB, free: 14.57 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.476/3.707, allocations: 9.26 MB / 444.8 MB, free: 5.305 MB / 314.7 MB (rm -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes.fmu > Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/CharacteristicIdealDiodes/CharacteristicIdealDiodes.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches